SY883x_For_Clients_langxun-J8/UsrInc/userapp/userapp.h

52 lines
1.5 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"
/******************************************************************************\
Macro definitions
\******************************************************************************/
#define BAT_LEVEL_LOW 20 //电池电量低报警值
#define LED_OFF_CNT 2
#define LED_ON_CNT 50 //5s
#define LED_HUXI_ON_CNT 85
#define LED_CHG_ON_CNT 200 //200s
/******************************************************************************\
Typedef definitions
\******************************************************************************/
/******************************************************************************\
Global variables and functions
\******************************************************************************/
extern uint8_t LED_On_Timer; //led亮时间计时
extern void UserAPP(void);
#endif