⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 杭州立宇泰豪华型44B0开发板
💻 C
字号:
#include "Target\44blib.h"
#include "Target\44b.h"

/********************************************/
//   ARMSYS实验一:Helloworld 
//   描述:连接PC机串口,观察超级终端输出                    
/********************************************/

void Main(void)
{
	char aa;
	rSYSCFG=CACHECFG;// Using 8KB Cache//
	Port_Init();
	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.21                                *");    
	Uart_Printf("\n*                     Email:Support@hzlitai.com.cn                      *");
	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -