52 lines
1.0 KiB
C
52 lines
1.0 KiB
C
/*
|
|
******************************************************************************
|
|
*
|
|
* @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
|