#ifndef SYSTEM_H_ #define SYSTEM_H_ #include #include "config.h" #include #include #include #include #ifdef _LONG_ADDR_SPACE_ #define flash_read_byte(x,y) pgm_read_byte_far(pgm_get_far_address(x)+y) #define flash_read_word(x,y) pgm_read_word_far(pgm_get_far_address(x)+y) #define flash_read_dword(x,y) pgm_read_dword_far(pgm_get_far_address(x)+y) #else #define flash_read_byte(x,y) pgm_read_byte((uint16_t)(&x)+y) #define flash_read_word(x,y) pgm_read_word((uint16_t)(&x)+y) #define flash_read_dword(x,y) pgm_read_dword((uint16_t)(&x)+y) #endif //#define NULL 0 void _memcopy(volatile uint8_t *src,volatile uint8_t *dest, uint16_t size); void System_SWReboot(); #endif /* SYSTEM_H_ */