41 #include <nuttx/config.h> 57 #define BOOTLOADER_COMMON_APP_SIGNATURE 0xB0A04150u 58 #define BOOTLOADER_COMMON_BOOTLOADER_SIGNATURE 0xB0A0424Cu 68 #define crc_HiLOC STM32_CAN1_FIR(2,1) 69 #define crc_LoLOC STM32_CAN1_FIR(2,2) 70 #define signature_LOC STM32_CAN1_FIR(3,1) 71 #define bus_speed_LOC STM32_CAN1_FIR(3,2) 72 #define node_id_LOC STM32_CAN1_FIR(4,1)
#define BOOTLOADER_COMMON_APP_SIGNATURE
__EXPORT void bootloader_app_shared_invalidate(void)
static void bootloader_app_shared_init(bootloader_app_shared_t *pshared, eRole_t role)
__EXPORT uint64_t crc64_add_word(uint64_t crc, uint32_t value)
union bootloader_app_shared_t::@2 crc
__EXPORT int bootloader_app_shared_read(bootloader_app_shared_t *shared, eRole_t role)
static void read(bootloader_app_shared_t *pshared)
#define BOOTLOADER_COMMON_BOOTLOADER_SIGNATURE
__EXPORT void bootloader_app_shared_write(bootloader_app_shared_t *shared, eRole_t role)
static void write(bootloader_app_shared_t *pshared)
static uint64_t calulate_signature(bootloader_app_shared_t *pshared)