config.h 531 B

1234567891011121314151617181920
  1. #ifndef __CONFIG_H
  2. #define __CONFIG_H
  3. #include "stm32g4xx_hal.h"
  4. #define FW_VERSION "1.0"
  5. #define SETTINGS_ADDR 0x08000000 + (63 * 2048) //0x01F7FF
  6. #define CRC_ADDRESS 0x01FFFC
  7. #define FLASH_ROW_SIZE 32
  8. /* @note All the executable code is mapped in SRAM1 area */
  9. #define FLASH_USER_START_ADDR ADDR_FLASH_PAGE_0 /* Start @ of user Flash area */
  10. #define FLASH_USER_END_ADDR (ADDR_FLASH_PAGE_63 + FLASH_PAGE_SIZE - 1) /* End @ of user Flash area */
  11. #endif /* #ifndef __CONFIG_H */