22,16 → 22,14 |
|
#CASE // Case sensitive compiler |
|
#define FLASH_BLOCK_SIZE getenv("FLASH_ERASE_SIZE")/2 // Minimal length of Flash Block Size |
#define RESERVED_BLOCKS 49 // Number of reserved flash blocks for BootLoader |
#define LOADER_RESERVED (getenv("PROGRAM_MEMORY")-(RESERVED_BLOCKS*FLASH_BLOCK_SIZE)) // begining of BootLoader |
#define BUFFER_LEN_LOD 46 // Length of Working buffer for HEX |
|
#define ERR_BUFFER_OVERRUN 1 // Error 1 - Buffer Overrun |
#define ERR_CHECKSUM 2 // Error 2 - Bad CheckSum |
#define ERR_TOO_MANY_BYTES 3 // Error 3 - Too many bytes in one line |
#define ERR_UNSUPORTED_LINETYPE 4 // Error 4 - Unsuported Line type |
|
#define BUFFER_LEN_LOD 46 // Length of Working buffer for HEX |
|
#include "..\common\bloader_defs.h" |
#include "bloader.h" |
#include <string.h> |
|