/* * @Description: * @Date: 2021-03-10 10:44:21 * @LastEditors: CK.Zh * @LastEditTime: 2021-03-10 10:45:51 * @FilePath: \NaviKit_EC_stm32\App\Inc\th_power.h */ #ifndef __TH_POWER_H__ #define __TH_POWER_H__ #include "cmsis_os2.h" #define EVENT_FLAG_POWER_MONITOR_MAIN_POWER_GOOD (0x01 << 0) //#define THREAD_FLAG_POWER_MONITOR_BKUP_POWER_GOOD //Event Flag osEventFlagsId_t PowerMonitorEventFlags; const osEventFlagsAttr_t PowerMonitorEventFlags_attributes; /* Definitions for PowerMonitTask */ osThreadId_t PowerMonitTaskHandle; const osThreadAttr_t PowerMonitTask_attributes; void PowerMonitTask(void *argument); #endif