📄 2410test.c
字号:
//====================================================================
// File Name : 2410test.c
// Function : S3C2410 Test Main Menu
// Program : Shin, On Pil (SOP)
// Date : June 13, 2003
// Version : 0.0
// History
// 0.0 : Programming start (February 20,2002) -> 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"
#include "2410ledary.h"
//===================================================================
void Main(void)
{
int i,j;
MMU_Init();
ChangeClockDivider(1,1); // 1:2:4
ChangeMPllValue(0xa1,0x3,0x1); // FCLK=202.8MHz
Port_Init();
Uart_Init(0,115200);
Uart_Select(0);
Delay(0); //calibrate Delay()
Uart_Printf("LED Ary Test:\n");
while (1)
{
for (i=0; i<8; i++)
{
for (j=0; j<8; j++)
{
DispLedAryCol(0x01<<j,i);
Delay(3000);
Uart_Printf("Led row %d, col %d ON\n",i,j);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -