dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_hal.h File Reference
#include <uavobjectmanager.h>
#include <hwshared.h>
#include <pios_usb_cdc_priv.h>
#include <pios_usb_hid_priv.h>

Go to the source code of this file.

Macros

#define PIOS_COM_TELEM_SER   (pios_com_telem_serial_id)
 

Enumerations

enum  pios_hal_panic {
  PIOS_HAL_PANIC_IMU = 2, PIOS_HAL_PANIC_MAG = 3, PIOS_HAL_PANIC_BARO = 4, PIOS_HAL_PANIC_FLASH = 5,
  PIOS_HAL_PANIC_FILESYS = 6, PIOS_HAL_PANIC_I2C_INT = 7, PIOS_HAL_PANIC_I2C_EXT = 8, PIOS_HAL_PANIC_SPI = 9,
  PIOS_HAL_PANIC_CAN = 10, PIOS_HAL_PANIC_ADC = 11, PIOS_HAL_PANIC_OSD = 12
}
 

Functions

void PIOS_HAL_CriticalError (uint32_t led_id, enum pios_hal_panic code)
 Flash a blink code. More...
 
void PIOS_HAL_ConfigureCDC (HwSharedUSB_VCPPortOptions port_type, uintptr_t usb_id, const struct pios_usb_cdc_cfg *cdc_cfg)
 
void PIOS_HAL_ConfigureHID (HwSharedUSB_HIDPortOptions port_type, uintptr_t usb_id, const struct pios_usb_hid_cfg *hid_cfg)
 
void PIOS_HAL_ConfigureSerialSpeed (uintptr_t com_id, HwSharedSpeedBpsOptions speed)
 
void PIOS_HAL_SetReceiver (int receiver_type, uintptr_t value)
 
uintptr_t PIOS_HAL_GetReceiver (int receiver_type)
 
void PIOS_HAL_InitUAVTalkReceiver ()
 

Variables

uintptr_t pios_rcvr_group_map []
 

Macro Definition Documentation

#define PIOS_COM_TELEM_SER   (pios_com_telem_serial_id)

Definition at line 58 of file pios_hal.h.

Enumeration Type Documentation

@ brief LED panic codes for hardware failure

Enumerator
PIOS_HAL_PANIC_IMU 
PIOS_HAL_PANIC_MAG 
PIOS_HAL_PANIC_BARO 
PIOS_HAL_PANIC_FLASH 
PIOS_HAL_PANIC_FILESYS 
PIOS_HAL_PANIC_I2C_INT 
PIOS_HAL_PANIC_I2C_EXT 
PIOS_HAL_PANIC_SPI 
PIOS_HAL_PANIC_CAN 
PIOS_HAL_PANIC_ADC 
PIOS_HAL_PANIC_OSD 

Definition at line 41 of file pios_hal.h.

Function Documentation

void PIOS_HAL_ConfigureCDC ( HwSharedUSB_VCPPortOptions  port_type,
uintptr_t  usb_id,
const struct pios_usb_cdc_cfg cdc_cfg 
)
void PIOS_HAL_ConfigureHID ( HwSharedUSB_HIDPortOptions  port_type,
uintptr_t  usb_id,
const struct pios_usb_hid_cfg hid_cfg 
)
uintptr_t PIOS_HAL_GetReceiver ( int  receiver_type)
void PIOS_HAL_SetReceiver ( int  receiver_type,
uintptr_t  value 
)