/********************************************************************************************************* // NCLUDE FILES *********************************************************************************************************/ #ifndef APP_TASK_H #define APP_TASK_H #include #include #include #include #include #include "bsp.h" #include "delay_conf.h" #include "cpuusage.h" #include "UserModbusSlaver.h" /*******************************************************************************************************/ // DEFINES /*******************************************************************************************************/ #define success 0 #define fail 1 #define false 0 #define true 1 extern uint16_t usDiscreteInputBuf[] ; extern uint16_t usCoilBuf[] ; extern uint16_t usRegInputBuf[] ; extern uint16_t usRegHoldingBuf[] ; extern void cpu_usage_get(rt_uint8_t *major, rt_uint8_t *minor); extern void cpu_usage_init(void); void rtthread_startup(void); #endif