main.c
来自「杭州利宇泰公司的基于44B0的ARMSys开发板上的大量源代码」· C语言 代码 · 共 34 行
C
34 行
#include "Target\44blib.h"
/********************************************/
// ARMSYS实验一:Helloworld
// 描述:连接PC机串口,观察超级终端输出
/********************************************/
void Main(void)
{
char aa;
Uart_Init(0,115200);
Led_Display(0xf);
Uart_Select(0); //Select UART0//
Beep(0x1);
Uart_Printf("\n\n*************************************************************************");
Beep(0x0);
Uart_Printf("\n* 立泰电子 *");
Uart_Printf("\n* -Hello World!- *");
Uart_Printf("\n* Version 1.10 *");
Uart_Printf("\n* Email:rao_dali@263.net *");
Uart_Printf("\n* UART Config--COM:115.2kbps,8Bit,NP,UART0 *");
Uart_Printf("\n*----------------Begin to Study Embedded System,OK? (Y/N)---------------*");
Led_Display(0x0);
aa= Uart_Getch();
if((aa=='Y')||(aa=='y'))
Uart_Printf("\nGood!See you next time!");
else
Uart_Printf("\nByeBye!");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?