2021-03-10 11:03:35 +08:00
|
|
|
/*
|
|
|
|
* @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"
|
|
|
|
|
2021-03-15 19:26:10 +08:00
|
|
|
#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;
|
|
|
|
|
|
|
|
|
2021-03-10 11:03:35 +08:00
|
|
|
/* Definitions for PowerMonitTask */
|
|
|
|
osThreadId_t PowerMonitTaskHandle;
|
|
|
|
const osThreadAttr_t PowerMonitTask_attributes;
|
|
|
|
|
2021-03-15 19:26:10 +08:00
|
|
|
void PowerMonitTask(void *argument);
|
2021-03-10 11:03:35 +08:00
|
|
|
#endif
|