main.c

来自「开发环境ADS1.2 说明:TECHV-2410串口测试程序」· C语言 代码 · 共 34 行

C
34
字号
#include "2410lib.h"
#include "option.h"
#include "2410addr.h"
#include "def.h"
#include "mmu.h"

void Main(void)
{
  ChangeClockDivider(1,1);    // 1:2:4   
  ChangeMPllValue(161,3,1);    //FCLK=202.8Mhz 
  Port_Init();  
  Uart_Init(0,115200);
  Uart_Select(0);
  MMU_Init();
  MMU_EnableICache();
    Uart_Printf("\n*************************************************************");
    Uart_Printf("\n*          Create-ARM2410T Embeded System(Ver:3.0)          *"); 
	Uart_Printf("\n*                  Create Electronic CO.,Ltd                *");
	Uart_Printf("\n*                  Tel:731-8925735                          *");
	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:64M Byte                      *");
	Uart_Printf("\n*                  SDRAM:64M Byte                           *");	
	Uart_Printf("\n*                  USB: V1.1                                *");
	Uart_Printf("\n*                  ETHERNET: 10M                            *");	
	Uart_Printf("\n*                  MONITOR: 320*240 TFT Color LCD           *");		
	Uart_Printf("\n*************************************************************");
	Uart_Printf("\n");
  while(1);
}

⌨️ 快捷键说明

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