stm32f4-uart-bootloader

Simple UART bootloader for STM32F4 MCU's
git clone git://git.mdnr.space/stm32f4-uart-bootloader
Log | Files | Refs | Submodules | README | LICENSE

firmware_info.c (435B)


      1 #include "globals/version.h"
      2 #include "shared/fwinfo.h"
      3 
      4 __attribute__((section(".firmware_info"))) FirmwareInfo_t fw_info = {
      5     .sentinel = FWINFO_SENTINEL,
      6     .deviceID = 0x454,
      7     .version =
      8         {
      9             .major = gGIT_VERSION_MAJOR,
     10             .minor = gGIT_VERSION_MINOR,
     11             .patch = gGIT_VERSION_PATCH,
     12             .hash = gGIT_VERSION_HASH,
     13         },
     14     .length = 0xffffffff,
     15     .crc32 = 0xaaaaaaaa,
     16 };