/* * File : syswatch.h * * Change Logs: * Date Author Notes * 2020-01-10 qiyongzhong first version */ #ifndef __SYSWATCH_H__ #define __SYSWATCH_H__ #include #ifdef SYSWATCH_USING typedef enum{ SYSWATCH_EVENT_SYSTEM_RESET = 0, //系统复位事件,事件前回调 SYSWATCH_EVENT_THREAD_KILL, //杀掉线程事件,事件前回调 SYSWATCH_EVENT_THREAD_RESUMED, //恢复线程事件,事件后回调 }syswatch_event_t; typedef void ( * syswatch_event_hook_t)(syswatch_event_t eid, rt_thread_t except_thread); void syswatch_set_event_hook(syswatch_event_hook_t hook);//set syswatch event callback function int syswatch_init(void);//Initialize syswatch components #endif //SYSWATCH_USING #endif //__SYSWATCH_H__