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

📄 main.c

📁 这是一个基于ARM44B0X的串口实验程序.
💻 C
字号:
#include <string.h>
#include "option.h"
#include "def.h"
#include "44b.h"
#include "44blib.h"
#include <stdio.h>
//following is CPU test functions include
//*******************************
volatile unsigned int err=0;
extern unsigned char *downPt;
extern unsigned int fileSize;
void Isr_Init(void);
void __irq Uerror(void);
extern int Image$$RO$$Limit;
extern int Image$$RW$$Base;

//////////////////////////////////////////////
//   S3C44BOX(ARM7 TDMI Core) 开发实验仪演示工具 //
//   系统配置:                              //
//       Bank0:System Monitor(SST39VF160)    //
//       Bank1:32MB Nand-Flash                  //
//       Bank2:保留      //
//       Bank3: USB(USBN9603)                 //
//       Bank4: 保留                         //
//       Bank5: 保留                        //
//       Bank6:16MB SDRAM                     //
//       Bank7:保留                        //
///////////////////////////////////////////////
//Please use "Courier New" font when you open it with UE//

void Main(void)
{
	
	Port_Init();
	Uart_Init(0,115200);
    	Led_Display(0x0);
	Delay(1000);
	Led_Display(0x3);

	Uart_Select(0); //Select UART0//
	Uart_Printf("\n*************************************************************");
	Uart_Printf("\n*          Create-ARM44B0 Embeded System(Ver:3.0)         *"); 
	Uart_Printf("\n*                  Create Electronic CO.,Ltd                *");
	Uart_Printf("\n*                  Tel:0731-4448056                         *");
	Uart_Printf("\n*                  http://www.hncreate.com                  *");
	Uart_Printf("\n*                  Email:create@hncreate.com                *");
	Uart_Printf("\n*-----------------------------------------------------------*");
	Uart_Printf("\n*  		 SYSTEM  CONFIG			   *");	
	Uart_Printf("\n*                  COM:115200bps,8bit,np,uart0              *");
	Uart_Printf("\n*                  BIOS:2M Byte                             *");
	Uart_Printf("\n*                  NAND FLASH:32M Byte                      *");
	Uart_Printf("\n*                  SDRAM:16M Byte                           *");	
	Uart_Printf("\n*                  USB: V1.1                                *");
	Uart_Printf("\n*                  ETHERNET: 10M                            *");	
	Uart_Printf("\n*                  MONITOR: 320*240 STN Color LCD           *");		
	Uart_Printf("\n*************************************************************");

	
	while(1);

}

void Led_Display(int data)
{
    rPDATG=(rPDATG & 0x13f) | ((data & 0x3)<<6);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -