/* ****************************************************************************** * * @file userapp.h * @brief userapp module * * * @version 1.0 * @date 2023/05/12 09:59:40 * @author Alex Xu * * Copyright (c) 2013-2099,Tkplusemi Technology Co.,Ltd. * All Rights Reserved * * History: * Revision Date Author Desc * 1.0.0 2023/07/12 Alex build this file ****************************************************************************** */ #ifndef __USERAPP_H__ #define __USERAPP_H__ #include "define.h" #define BIT_WARING_BATLOW_EVENT 0x01 #define BAT_LEVEL_LOW 20 //电池电量低报警值 typedef enum{ POWER_ON_STATE = 1, AWAKE_STATE, NORMAL_STATE, SLEEP_STATE, }SYS_STATE; typedef struct { uint8_t Next_State; uint8_t Current_State; uint8_t Pre_State; }s_sys_state; extern s_sys_state Systerm_State; extern void SysTem_State_Machine(void); extern void UserAPP(void); extern void Other_Thread(void); #endif