uC/OS-II 中 at91sam7s64 的PIT中断向量地址是如何确定的?
uC/OS-II 中 at91sam7s64 的PIT中断向量地址是如何确定的?uC/OS-II 中关于PIT中断的设置程序如下:
voidTmr_TickInit (void)
{
INT32Ucounts;
/* Set the vector address for PIT */
AT91C_BASE_AIC->AIC_SVR = (INT32U)Tmr_TickISR_Handler;
AT91C_BASE_AIC->AIC_SMR = AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE
| AT91C_AIC_PRIOR_LOWEST;
// clear any pending interrupt for this AIC input and then enable the interrupt.
AT91C_BASE_AIC->AIC_ICCR = 1 << AT91C_ID_SYS;
AT91C_BASE_AIC->AIC_IECR = 1 << AT91C_ID_SYS;
counts = (BSP_CPU_ClkFreqPeripheral () / 16 / OS_TICKS_PER_SEC) - 1;
AT91C_BASE_PITC->PITC_PIMR = AT91C_PITC_PITEN | AT91C_PITC_PITIEN | counts;
}
PIT的中断向量地址设置为:AT91C_BASE_AIC->AIC_SVR = (INT32U)Tmr_TickISR_Handler;
为什么手册上没有写PIT的中断向量地址的ID是:AT91C_ID_SYS
本人是新手,请大家帮忙 手册上咋写的呢? PIT是一种系统外设 回复【1楼】cht-rtos
-----------------------------------------------------------------------
刚找到了这个对应表
http://cache.amobbs.com/bbs_upload782111/files_39/ourdev_642062XX7ZVN.jpg
(原文件名:未命名.jpg)
但没看到有说明这个SYSIRQ 与 PIT 的中断是对应的 搜索source 1
页:
[1]