新聞中心

S3C2440-RTC

作者: 時間:2016-12-02 來源:網(wǎng)絡(luò) 收藏
void __irq Key_ISR(void){
rSRCPND |= 1; //SRCPND 通過寫入數(shù)據(jù)清零,如果不清零,會反復(fù)進(jìn)行請求
rINTPND |= 1; //INDPND 通過置1清零
flag = 1;
}
int Main(){
flag = 0;
rGPFCON &= 0xfffc; //0
rGPFCON |= 1<<1;
rGPFUP = 0xfe;
rSRCPND |= 1<<0;
rINTPND |= 1<<0;
rINTMSK &= "(0x1<<0); //開中斷
pISR_EINT0 = (U32)Key_ISR;
Init_LCD();
Paint_background(0xffffff,0,0,320,240);
SetTime();
ShowTime();
while(1){
if(flag){
Paint_background(0xffffff,0,0,320,240);
ShowTime();
flag = 0;
}
}
}
上一頁 1 2 3 下一頁

關(guān)鍵詞: S3C2440RTC實時時

評論


技術(shù)專區(qū)

關(guān)閉