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

parameters.h (516B)


      1 #ifndef __PARAMETERS_H__
      2 #define __PARAMETERS_H__
      3 
      4 #include <stdbool.h>
      5 #include <stdint.h>
      6 
      7 // Sample struct containing some config parameters
      8 typedef struct {
      9     float float_param_1;
     10     float float_param_2;
     11     uint32_t dw_param;
     12     uint16_t w_param;
     13     bool bool_param_1;
     14     bool bool_param_2;
     15 } Param_Data_t;
     16 
     17 typedef struct /*__attribute__((__packed__))*/ {
     18     Param_Data_t data;
     19     uint32_t reserved;
     20     // can be expanded to 8KB
     21 } Parameters_t;
     22 
     23 extern Parameters_t param;
     24 
     25 #endif // __PARAMETERS_H__