dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_board_info.c
Go to the documentation of this file.
1 #include <pios.h>
2 #include <pios_board.h>
3 
4 #include "pios_board_info.h"
5 
6 #if defined(FLIGHT_POSIX)
8 #else
9 const struct pios_board_info __attribute__((__used__)) __attribute__((__section__(".boardinfo"))) pios_board_info_blob = {
10 #endif
12  .board_type = BOARD_TYPE,
13  .board_rev = BOARD_REVISION,
14 #ifdef BOOTLOADER_VERSION
15  .bl_rev = BOOTLOADER_VERSION,
16 #endif
17  .hw_type = HW_TYPE,
18 #ifdef FW_BANK_SIZE
19  .fw_base = FW_BANK_BASE,
20  .fw_size = FW_BANK_SIZE - FW_DESC_SIZE,
21  .desc_base = FW_BANK_BASE + FW_BANK_SIZE - FW_DESC_SIZE,
22  .desc_size = FW_DESC_SIZE,
23 #endif
24 #ifdef EE_BANK_BASE
25  .ee_base = EE_BANK_BASE,
26  .ee_size = EE_BANK_SIZE,
27 #endif
28 };
Main PiOS header to include all the compiled in PiOS options.
const struct pios_board_info pios_board_info_blob
#define PIOS_BOARD_INFO_BLOB_MAGIC