Both_Way_Comm_SY8833/TP3310_Demo.si4project/Backup/userapp(6558).h

50 lines
963 B
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 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);
#endif