Line 1... |
Line 1... |
1 |
/*------------------- BOOT LOADER Common Definitions --------------------------------------------*/ |
1 |
/*------------------- BOOT LOADER Common Definitions --------------------------------------------*/ |
2 |
|
2 |
|
3 |
#define FLASH_BLOCK_SIZE getenv("FLASH_ERASE_SIZE")/2 // Minimal length of Flash Block Size |
3 |
#define FLASH_BLOCK_SIZE getenv("FLASH_ERASE_SIZE")/2 // Minimal length of Flash Block Size |
4 |
#define RESERVED_BLOCKS 49 // Number of reserved flash blocks for BootLoader |
4 |
#define RESERVED_BLOCKS 50 // Number of reserved flash blocks for BootLoader |
5 |
#define LOADER_RESERVED (getenv("PROGRAM_MEMORY")-(RESERVED_BLOCKS*FLASH_BLOCK_SIZE)) // begining of BootLoader |
5 |
#define LOADER_RESERVED (getenv("PROGRAM_MEMORY")-(RESERVED_BLOCKS*FLASH_BLOCK_SIZE)) // begining of BootLoader |
6 |
|
6 |
|
7 |
|
7 |
|