27 lines
692 B
C
Executable File
27 lines
692 B
C
Executable File
#include "../main/SystemInclude.h"
|
|
/****************************************************************************/
|
|
int main(void)
|
|
{
|
|
Stop_WDT(); /* 禁用独立看门狗(IWDG) */
|
|
SystemClockConfiguration(); /* 系统时钟初始化 */
|
|
SystemGPIOInit(); /* 初始化GPIO默认状态 */
|
|
StartLPTimer2(327);
|
|
lptimer_register_irq_callback(LPTIM2, My_Timer2_Callback);
|
|
Key_Power_Init();
|
|
|
|
EnterMainEntry(); // 进入程序主入口
|
|
/*----------用户系统初始化----------*/
|
|
systmeState = 0x00; // 系统状态初始化
|
|
SystemInitProcess(); // 硬件初始化
|
|
|
|
OLED_Init();
|
|
LED_PIN_OUT();
|
|
while(1)
|
|
{
|
|
SystemPolling(); //系统轮询
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|