?? 44btest.c
字號:
#include <string.h>
#include "..\inc\option.h"
#include "..\inc\44b.h"
#include "..\inc\44blib.h"
#include "..\inc\def.h"
#include "..\inc\Pwm.h"
void Isr_Init(void);
//****************************************************************
// * S3C44B0X developer's notes *
// ****************************************************************
void Main(void)
{
Isr_Init();
Port_Init();
Uart_Init(0,115200);
Uart_Select(0);
Delay(0); //calibrate Delay()
Delay(5000);
while(1)
{
char aa;
Uart_Printf("\n\n***********************************************************************");
Uart_Printf("\n\n\n 歡迎使用恒豐銳科S3C44B0 PWM 測試程序(2007)\n\n");
Uart_Printf("\n*------------------Begin to Start PWM(Beep) test,OK? (Y/N)--------------------*");
Uart_Printf("\n");
Uart_Printf("\nEnter the 'Y' or 'y' to test:\n");
aa= Uart_Getch();
if((aa=='Y')||(aa=='y'))
{
Uart_Printf("\n");
(void (*)(void))Test_Pwm();
}
}
}
void Isr_Init(void)
{
U32 i;
for(i=_RAM_STARTADDRESS;i<(_RAM_STARTADDRESS+0x20);i+=4)
{
*((volatile unsigned *)i)=0xEA000000+0x1FFE;
}
rINTCON = 0x05; //IRQ interrupt enable,Non-vectored interrupt mode
rINTMOD = 0x0;//IRQ mode
rINTMSK|=BIT_GLOBAL|BIT_EINT4567; // All interrupt is masked.
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -