42 #include "board_hw_defs.c"
47 #ifdef PIOS_INCLUDE_WS2811
64 #if defined(PIOS_INCLUDE_ANNUNC)
70 #ifdef PIOS_INCLUDE_WS2811
75 if ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL) {
80 #ifdef PIOS_INCLUDE_ANNUNC
81 #if defined(PIOS_LED_HEARTBEAT)
83 for (
int i=0;
i < 500000;
i++) {
84 asm volatile (
"nop"::);
87 for (
int i=0;
i < 500000;
i++) {
88 asm volatile (
"nop"::);
95 #if defined(PIOS_INCLUDE_FLASH)
103 #if defined(PIOS_INCLUDE_USB)
110 uintptr_t pios_usb_id;
113 #if defined(PIOS_INCLUDE_USB_HID) && defined(PIOS_INCLUDE_COM_MSG)
114 uintptr_t pios_usb_hid_id;
int32_t PIOS_Flash_Internal_Init(uintptr_t *flash_id, const struct pios_flash_internal_cfg *cfg)
const struct stm32_gpio video_mask_pin
Main PiOS header to include all the compiled in PiOS options.
int32_t PIOS_USB_HID_Init(uintptr_t *usbhid_id, const struct pios_usb_hid_cfg *cfg, uintptr_t lower_id)
int32_t PIOS_DELAY_Init(void)
void PIOS_ANNUNC_Off(uint32_t annunc_id)
const struct pios_board_info pios_board_info_blob
int PIOS_WS2811_init(ws2811_dev_t *dev_out, const struct pios_ws2811_cfg *cfg, int max_leds)
Allocate and initialise WS2811 device.
const struct pios_com_driver pios_usb_hid_com_driver
int32_t PIOS_ANNUNC_Init(const struct pios_annunc_cfg *cfg)
void PIOS_ANNUNC_On(uint32_t annunc_id)
int32_t PIOS_USB_DESC_HID_ONLY_Init(void)
uintptr_t pios_com_telem_usb_id
int32_t PIOS_COM_MSG_Init(uintptr_t *com_id, const struct pios_com_driver *driver, uintptr_t lower_id)
void PIOS_USBHOOK_Activate(void)
void PIOS_FLASH_register_partition_table(const struct pios_flash_partition partition_table[], uint8_t num_partitions)
void PIOS_WS2811_trigger_update(ws2811_dev_t dev)
Trigger an update of the LED strand.
int32_t PIOS_USB_Init(uintptr_t *usb_id, const struct pios_usb_cfg *cfg)
const struct pios_flash_partition pios_flash_partition_table[]
#define PIOS_Assert(test)
int32_t PIOS_USB_BOARD_DATA_Init(void)
#define PIOS_LED_HEARTBEAT