Thread 中讨论的其他器件:OMAPL138
您好!
我正在处理 LCDKOMAP138,因为 ARM 计时器中断功能不起作用。
提前感谢
此致、
Seyed
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好!
我正在处理 LCDKOMAP138,因为 ARM 计时器中断功能不起作用。
提前感谢
此致、
Seyed
您好 Seyed、
我认为我们不支持非常旧的 Starterware 代码。 我也找不到您提到的源代码文件 timercounter.c。
这是您在自己身边开发的吗?
您能否检查是否正在执行以下序列来启用 ARM9的定时器中断?
请注意、这基于适用于 OMAPL138的处理器 SDK:
software-dl.ti.com/.../index_FDS.html
"intc"例程位于"pdk_omapl138_1_0_11\packages\ti\cSL\arch\arm9\src\interrupt.c"文件下。
INTC_Init();
/*注册中断服务例程(ISR)。 *
INTC_IntRegister (((uint32_t) interruptNum、(IntincuncPtr) hwiFxn);
/*设置系统中断的通道编号。 通道编号0-1.
映射到 FIQ,通道编号2-31映射到 ARM 的 IRQ。*/
通道号=((params->priority > 31)||(params->priority < 2))? 0x12U:优先级;(您希望为此中断设置的优先级)。
IntChannelSet (((uint32_t) interruptNum、通道号);
/*启用中断*/
INTC_IntEnable (0);
/*启用 Globle 中断 AINTC */
IntMasterIRQEnable();
IntGlobalEnable();
IntIRQEnable();
谢谢