Make the flash memory structure depend on the APPLICATION_START_PAGE macro

This commit is contained in:
Szczepan Zalega 2019-08-23 17:52:51 +02:00
parent 1100b159a9
commit ea803aab95
No known key found for this signature in database
GPG Key ID: D9BAE35991DE5B22

View File

@ -51,8 +51,8 @@
struct flash_memory_st{ struct flash_memory_st{
uint8_t bootloader[20*1024]; uint8_t bootloader[APPLICATION_START_PAGE*2*1024];
uint8_t application[196*1024-16]; uint8_t application[(APPLICATION_END_PAGE-APPLICATION_START_PAGE)*2*1024-16];
uint8_t app_version[8]; uint8_t app_version[8];
uint8_t auth_word[8]; uint8_t auth_word[8];
uint8_t bootloader_data[2*1024]; uint8_t bootloader_data[2*1024];