?? main.c
字號:
//====================================================================
// File Name : 2410test.c
// Function : S3C2410 Test Main Menu
// Program : Shin, On Pil (SOP)
// Date : May 30, 2002
// Version : 0.0
// History
// 0.0 : Programming start (February 20,2002) -> SOP
// 1.0 (20020530) : First release for customer
// 1.1 (20020801) : Strata NOR Flash Added and etc. -> SOP
//====================================================================
#include <stdlib.h>
#include <string.h>
#include "def.h"
#include "option.h"
#include "2410addr.h"
#include "2410lib.h"
#include "2410slib.h"
#include "mmu.h"
//===================================================================
void Main(void)
{
int i,j;
MMU_Init(); //初始化內存管理單元
//設置系統時鐘
ChangeClockDivider(1,1); // 1:2:4
ChangeMPllValue(0xa1,0x3,0x1); // FCLK=202.8MHz
Port_Init(); //初始化I/O口
Uart_Init(0,115200); //初始化串口
Uart_Select(0); //選擇串口0
//打印串口信息
Uart_Printf("\nWelcom to Uart Test!\n");
Uart_Printf("Baud rate=115200, no flow control\n");
i = 0;
while(1)
{
Uart_Printf("i=%d \n", i++); //從串口格式化輸出
for (j=0; j<0xffffff; j++); //延時
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -