Line 1... |
Line 1... |
1 |
/*------------------- DUMMY BOOT LOADER --------------------------------------------*/ |
1 |
/*------------------- DUMMY BOOT LOADER --------------------------------------------*/ |
2 |
#define FLASH_BLOCK_SIZE 32 |
2 |
#define FLASH_BLOCK_SIZE 32 |
3 |
#define LOADER_RESERVED getenv("PROGRAM_MEMORY")-24*FLASH_BLOCK_SIZE |
3 |
#define LOADER_RESERVED getenv("PROGRAM_MEMORY")-26*FLASH_BLOCK_SIZE |
4 |
#define BUFFER_LEN_LOD 46 |
4 |
#define BUFFER_LEN_LOD 46 |
5 |
#if FLASH_BLOCK_SIZE != getenv("FLASH_ERASE_SIZE")/2 |
5 |
#if FLASH_BLOCK_SIZE != getenv("FLASH_ERASE_SIZE")/2 |
6 |
#error Wrong length of the Flash Block Size. getenv("FLASH_ERASE_SIZE")/getenv("FLASH_WRITE_SIZE") |
6 |
#error Wrong length of the Flash Block Size. getenv("FLASH_ERASE_SIZE")/getenv("FLASH_WRITE_SIZE") |
7 |
#endif |
7 |
#endif |
8 |
|
8 |
|