Refactor. Add debug code. Use %u for unsigned. Use volatile pointer instead of memory storage.

This commit is contained in:
Szczepan Zalega
2019-08-23 17:51:22 +02:00
parent 9ddba5dfc3
commit 1100b159a9
2 changed files with 20 additions and 12 deletions

View File

@ -44,7 +44,7 @@
#define AUTH_WORD_ADDR (APPLICATION_END_ADDR)
#define LAST_ADDR (APPLICATION_END_ADDR-2048 + 8)
#define VERSION_ADDR (AUTH_WORD_ADDR-8)
#define NEW_FW_VERSION_ADDR (AUTH_WORD_ADDR-8)
#define BOOT_VERSION_PAGE (APPLICATION_END_PAGE)
#define BOOT_VERSION_ADDR (0x08000000 + BOOT_VERSION_PAGE*FLASH_PAGE_SIZE)
#define LAST_PAGE (APPLICATION_END_PAGE-1)