forked from WCH-Templates/CH32V203
47 lines
1 KiB
C
47 lines
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.
|
|||
|
* SPDX-License-Identifier: Apache-2.0
|
|||
|
*******************************************************************************/
|
|||
|
|
|||
|
/*
|
|||
|
*@Note
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>ӡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̣<EFBFBD>
|
|||
|
USART1_Tx(PA9)<EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾʹ<EFBFBD><EFBFBD> USART1(PA9) <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӡ<EFBFBD><EFBFBD><EFBFBD>Կ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
#include "debug.h"
|
|||
|
|
|||
|
/* Global typedef */
|
|||
|
|
|||
|
/* Global define */
|
|||
|
|
|||
|
/* Global Variable */
|
|||
|
|
|||
|
/*********************************************************************
|
|||
|
* @fn main
|
|||
|
*
|
|||
|
* @brief Main program.
|
|||
|
*
|
|||
|
* @return none
|
|||
|
*/
|
|||
|
int main(void)
|
|||
|
{
|
|||
|
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
|
|||
|
Delay_Init();
|
|||
|
USART_Printf_Init(115200);
|
|||
|
printf("SystemClk:%d\r\n", SystemCoreClock);
|
|||
|
|
|||
|
printf("This is printf example\r\n");
|
|||
|
|
|||
|
while(1)
|
|||
|
{
|
|||
|
}
|
|||
|
}
|