69 lines
1.7 KiB
C
69 lines
1.7 KiB
C
/*
|
|
******************************************************************************
|
|
*
|
|
* @file main.c
|
|
* @brief main module
|
|
* @ic sy8835
|
|
*
|
|
* @version 1.0
|
|
* @date 2024/11/01 17:35:40
|
|
* @author Alex Xu
|
|
*
|
|
* Copyright (c) 2013-2099,Tkplusemi Technology Co.,Ltd.
|
|
* All Rights Reserved
|
|
*
|
|
* History:
|
|
* Revision Date Author Desc
|
|
* 1.0.0 2024/11/01 Alex build this file
|
|
******************************************************************************
|
|
*/
|
|
/*_____ I N C L U D E S ____________________________________________________*/
|
|
#include "define.h"
|
|
#include "userapp.h"
|
|
#include "watchdog.h"
|
|
#include "sys_tim.h"
|
|
#include "system.h"
|
|
#include "led.h"
|
|
#include "charger_module.h"
|
|
#include "adc.h"
|
|
#include "vox_module.h"
|
|
|
|
|
|
/******************************************************************************\
|
|
Macro definitions
|
|
\******************************************************************************/
|
|
|
|
/******************************************************************************\
|
|
Variables definitions
|
|
\******************************************************************************/
|
|
|
|
|
|
/******************************************************************************\
|
|
Functions definitions
|
|
\******************************************************************************/
|
|
|
|
void main(void )
|
|
{
|
|
System_Init(); //ϵͳ³õʼ»¯
|
|
|
|
#ifdef _DEBUG_MAIN
|
|
|
|
printf("System Init.\r\n");
|
|
|
|
#endif
|
|
|
|
while(1)
|
|
{
|
|
|
|
#if WTG_ENABLE
|
|
WDT = 1;
|
|
SWDT = 1;
|
|
#endif
|
|
Sys_Tim0_Handler(); //¶¨Ê±Æ÷
|
|
|
|
UserAPP();
|
|
}
|
|
}
|
|
|
|
|