?? s64pit.c
字號:
#include "AT91SAM7S64.h"
#include "S64Pit.h"
#include "ucos_ii.h"
void S64PitISR(void)
{
unsigned int s=0;
s=AT91C_BASE_PITC->PITC_PIVR;
s=s;
//OSTimeTick();
}
void S64PitInit(void)
{
AT91C_BASE_PITC->PITC_PIMR=AT91C_PITC_PITEN|AT91C_PITC_PITIEN|30000;
AT91C_BASE_AIC->AIC_SMR[1]=AT91C_AIC_PRIOR_LOWEST|AT91C_AIC_SRCTYPE_INT_EDGE_TRIGGERED;
//AT91C_BASE_AIC->AIC_SVR[1]=(unsigned int)S64PitISR;
AT91C_BASE_AIC->AIC_IECR|=1<<1;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -