📄 main.c
字号:
#include "option.h"
#include "def.h"
#include "44b.h"
#include "44blib.h"
void Main(void)
{
U8 aa;
rSYSCFG=SYSCFG_8KB;
#if (PLLON==1)
ChangePllValue(PLL_M,PLL_P,PLL_S);
#endif
Port_Init();
Uart_Init(0,115200);
Uart_Select(0);
Uart_Printf("\n* 北京三恒星科技 *");
Uart_Printf("\n* -S3C44B0X功能部件:hello world实验测试- *");
Uart_Printf("\n* Version 1.1 *");
Uart_Printf("\n* www.sanhengxing.com *");
Uart_Printf("\n* UART Config--COM:115.2kbps,8Bit,NP,UART0 *");
Uart_Printf("\n*------------------Begin to Start串口 实验测试,OK? (Y/N)----------------*");
Uart_Printf("\n");
aa= Uart_Getch();
if((aa=='Y')||(aa=='y'))
while(1)
{
Uart_Printf("\nHello,world!");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -