📄 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"
#include "TTS3011.h"
#include "GB2312.h"
U16 buf[9]={dong1,nan2,da4,xue2,zi4,dong4,hua4,xue2,yuan4};
//===================================================================
void Main(void)
{
MMU_Init(); //初始化内存管理单元
//设置系统时钟
ChangeClockDivider(1,1); // 1:2:4 FCLK:HCLK:PCLK
ChangeMPllValue(0xa1,0x3,0x1); // FCLK=202.8MHz
Port_Init(); //初始化I/O口
Uart_Init(0,9600); //初始化串口,波特率9600
Uart_Select(2); //选择串口2
TTS_Reset();
while(rGPCDAT & 0x20);
Send_Play_Play(buf,9);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -