Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / flight / pios / common / pios_board_info.c
blob97d9eb79f5a41f9478b5493518fcbb651c4f645c
1 #include <pios.h>
2 #include <pios_board.h>
3 #include "pios_board_info.h"
5 const struct pios_board_info __attribute__((__used__)) __attribute__((__section__(".boardinfo"))) pios_board_info_blob = {
6 .magic = PIOS_BOARD_INFO_BLOB_MAGIC,
7 .board_type = BOARD_TYPE,
8 .board_rev = BOARD_REVISION,
9 .bl_rev = BOOTLOADER_VERSION,
10 .hw_type = HW_TYPE,
11 .fw_base = FW_BANK_BASE,
12 .fw_size = FW_BANK_SIZE - FW_DESC_SIZE,
13 .desc_base = FW_BANK_BASE + FW_BANK_SIZE - FW_DESC_SIZE,
14 .desc_size = FW_DESC_SIZE,
15 #ifdef EE_BANK_BASE
16 .ee_base = EE_BANK_BASE,
17 .ee_size = EE_BANK_SIZE,
18 #endif