Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / flight / pios / inc / pios_board_info.h
blob596ec905a9f9cb986606102675c0ecd11d2614b7
1 #ifndef PIOS_BOARD_INFO_H
2 #define PIOS_BOARD_INFO_H
4 #include <stdint.h> /* uint* */
6 #define PIOS_BOARD_INFO_BLOB_MAGIC 0xBDBDBDBD
8 struct pios_board_info {
9 uint32_t magic;
10 uint8_t board_type;
11 uint8_t board_rev;
12 uint8_t bl_rev;
13 uint8_t hw_type;
14 uint32_t fw_base;
15 uint32_t fw_size;
16 uint32_t desc_base;
17 uint32_t desc_size;
18 uint32_t ee_base;
19 uint32_t ee_size;
20 } __attribute__((packed));
22 extern const struct pios_board_info pios_board_info_blob;
24 struct __attribute__((packed)) fw_version_info {
25 uint8_t magic[4];
26 uint32_t commit_hash_prefix;
27 uint32_t timestamp;
28 uint8_t board_type;
29 uint8_t board_revision;
30 uint8_t commit_tag_name[26];
31 uint8_t sha1sum[20];
32 uint8_t uavosha1[20];
33 uint8_t pad[20];
36 #endif /* PIOS_BOARD_INFO_H */