48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
/********************************** (C) COPYRIGHT *******************************
|
|
* File Name : main.c
|
|
* Author : WCH
|
|
* Version : V1.0.0
|
|
* Date : 2021/06/06
|
|
* Description : Main program body.
|
|
*********************************************************************************
|
|
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
|
|
* Attention: This software (modified or not) and binary are used for
|
|
* microcontroller manufactured by Nanjing Qinheng Microelectronics.
|
|
*******************************************************************************/
|
|
|
|
/*
|
|
*@Note
|
|
USART Print debugging routine:
|
|
USART1_Tx(PA9).
|
|
This example demonstrates using USART1(PA9) as a print debug port output.
|
|
|
|
*/
|
|
|
|
|
|
#include "debug.h"
|
|
|
|
#include "main_task.h"
|
|
|
|
/*********************************************************************
|
|
* @fn main
|
|
*
|
|
* @brief Main program.
|
|
*
|
|
* @return none
|
|
*/
|
|
int main(void)
|
|
{
|
|
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
|
|
|
|
//硬件初始化
|
|
bsp_init();
|
|
|
|
//主循环,
|
|
main_loop();
|
|
|
|
while(1)
|
|
{
|
|
//一般不能运行到这,如果运行到这肯定是程序有错
|
|
}
|
|
}
|