37 #include "board_hw_defs.c"
51 #if defined(PIOS_INCLUDE_ANNUNC)
58 #if defined(PIOS_INCLUDE_SPI)
60 if (
PIOS_SPI_Init(&pios_spi_telem_flash_id, &pios_spi_telem_flash_cfg)) {
65 #if defined(PIOS_INCLUDE_FLASH)
67 bool flash_chip_ok =
false;
70 1, &flash_chip_cfgs[
i]) == 0) {
79 pios_external_flash_id = 0;
86 uint32_t num_partitions;
88 flash_partition_table = PIOS_BOARD_HW_DEFS_GetPartitionTable(bdinfo->
board_rev, &num_partitions);
94 #if defined(PIOS_INCLUDE_USB)
101 uintptr_t pios_usb_id;
104 #if defined(PIOS_INCLUDE_USB_HID) && defined(PIOS_INCLUDE_COM_MSG)
105 uintptr_t pios_usb_hid_id;
int32_t PIOS_Flash_Internal_Init(uintptr_t *flash_id, const struct pios_flash_internal_cfg *cfg)
Main PiOS header to include all the compiled in PiOS options.
int32_t PIOS_Flash_Jedec_Init(uintptr_t *flash_id, pios_spi_t spi_id, uint32_t slave_num, const struct pios_flash_jedec_cfg *cfg)
#define PIOS_DEBUG_Assert(test)
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)
const struct pios_board_info pios_board_info_blob
const struct pios_com_driver pios_usb_hid_com_driver
int32_t PIOS_SPI_Init(pios_spi_t *spi_dev, const struct pios_spi_cfg *cfg)
int32_t PIOS_ANNUNC_Init(const struct pios_annunc_cfg *cfg)
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)
int32_t PIOS_USB_Init(uintptr_t *usb_id, const struct pios_usb_cfg *cfg)
#define PIOS_Assert(test)
int32_t PIOS_USB_BOARD_DATA_Init(void)