【发布时间】:2013-01-04 17:15:41
【问题描述】:
我去过我需要比 cmets 更详细地理解这段代码,soemone 可以帮忙吗?
void vicInstallIRQhandler(pVoidFunc_t pISR, uint32_t priority,
uint32_t vicIntSource) {
// store the handler address in the correct slot in the vector
*(&VICVECTADDR0 + vicIntSource) = (unsigned long)pISR;
// set the priority of the interrupt for this slot
*(&VICVECTPRIORITY0 + vicIntSource) = priority;
// clear FIQ select bit i.e. assign this interrupt source to IRQ
VICINTSELECT &= ~(1UL << vicIntSource);
// enable the interrupt
VICINTENABLE |= (1UL << vicIntSource);
}
【问题讨论】:
-
这真的取决于您设备的规格。 cmets 很能说明问题。也许您应该针对您不了解的部分发布更具体的问题
标签: c vector real-time handler irq