在学习PRUSS时遇到几个问题:
问题1:PRU 中断嵌套功能的描述?
问题2:GPIR、HIPIR0中的值是正在处理的最高优先级的通道号吗?这个值是通道号吗?
问题3:GNLR、HINLR0中的值是哪种值?嵌套级别(Nesting Level)是指什么?
Nancy Wang:
请问芯片型号是什么?
user5879605:
回复 Nancy Wang:
OMAP-L138
Nancy Wang:
回复 user5879605:
参考这个文档PRU_Interrupt_Controller:
processors.wiki.ti.com/…/PRU_Interrupt_Controller
user5879605:
回复 Nancy Wang:
这些资料都已看过,看过后没理解才提问的。
Nancy Wang:
回复 user5879605:
1、第一问是什么意思?
2、是通道号
GPIR是所有的host interrupt
HIPIR0是特定的host interrupt
请看TRM 14.7.5.6 Interrupt Prioritization
www.ti.com/…/spruh77c.pdf
3、通道号
channel有默认的优先级:Channel 0 has the highest priority and channel 9 has the lowest.
nesting level相当于channel优先级的嵌套。
GNLR:The nesting level is the channel (and all of lower priority channels) that are nested out because of a current interrupt.
HINLR0:The nesting level controls which channel and lower priority channels are nested. There is one register per host interrupt
Nancy Wang:
回复 user5879605:
可以结合TRM:14.7 PRU Interrupt Controller看。
user5879605:
回复 Nancy Wang:
谢谢您的回复!
关于GPIR,我看到“14.8.2.11 GLBLPRIIDX Register (Offset = 80h)The Global Prioritized Index Register shows the interrupt number of the highest priority interrupt pendingacross all the host interrupts. ”, 感觉好像又是中断号,让我有点疑惑;收到您的回复应该确定是通道号了。谢谢!