shuichan_old/V1.3/STM32F103_App1/Src/main.c

26 lines
561 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "main.h"
#include "app_common.h"
#include "app_loop.h"
/**
* @brief APP 主函数
*
* 分层结构:
* Board_Init() - 基础硬件HAL/时钟/GPIO/DMA/UART/看门狗system.c
* app_init() - 业务模块:横幅/EEPROM/W25Q64/继电器/秤/LED/ADC/网络app_loop.c
* app_loop_*() - 主循环业务调度app_loop.c
*/
int main(void)
{
SCB->VTOR = FLASH_BASE | Application_1_Addr;
Board_Init();
app_init();
app_loop_init();
while (1) {
IWDG_Feed();
app_loop_process();
}
}