Files
hc32f460_boot/App/main.c
T
YuanHongbin 8ded5ca0dc chore: 源码编码GB2312统一转换为UTF-8
18个含有中文注释的.c/.h文件从GB2312转为UTF-8(无BOM)
2026-07-20 14:27:38 +08:00

55 lines
715 B
C

#include "main.h"
#include "pt_ext.h"
#include "pt_task.h"
#include <stdlib.h>
#include <math.h>
#include "hdl_clk.h"
/*******************************************************************************
* 中断服务函数
******************************************************************************/
void SysTick_Handler(void)
{
pt_ticks_inc();
__DSB();
}
void JDI_Disable(void)
{
GPIO_REG_Unlock();
GPIO_SetDebugPort( GPIO_PIN_TRST,DISABLE);
GPIO_SetDebugPort( GPIO_PIN_TDO, DISABLE);
GPIO_REG_Lock();
}
int32_t main(void)
{
JDI_Disable();
hdl_clk_init();
while (1)
{
SWDT_FeedDog();
pt_task_schedule();
pt_task_pm();
}
}