//############################################################################################################################################################################################################# #ifndef _INC_SYSTEM_H_ #define _INC_SYSTEM_H_ //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #include #include "config.h" #include #include #include #include #include //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #ifdef _LONG_ADDR_SPACE_ #define flash_read_byte(x,y) pgm_read_byte_far(x+y) #define flash_read_word(x,y) pgm_read_word_far(x+y) #define flash_read_dword(x,y) pgm_read_dword_far(x+y) #else #define flash_read_byte(x,y) pgm_read_byte(x+y) #define flash_read_word(x,y) pgm_read_word(x+y) #define flash_read_dword(x,y) pgm_read_dword(x+y) #endif //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #define System_GetTimeInstance() System_GetSysTick() uint32_t System_GetSysTick(void); uint32_t HAL_GetTick(void); uint32_t System_GetSysTickDifference(uint32_t TimeInstance); void System_SWReboot(void); //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #endif // #ifndef _INC_SYSTEM_H_ //#############################################################################################################################################################################################################