TI工程师您好!
在使用AM5718做ehrmpwm的内核驱动里面的中断时,设置了周期中断可以用request_irq申请到ehrpwm2对应的209号中断,执行
echo 1 > /sys/class/pwm/pwmchip2/export
echo 1000000 >/sys/class/pwm/pwmchip2/pwm1/period
echo 1 >/sys/class/pwm/pwmchip2/pwm1/enable
也可以运行,在驱动里面读出中断标志寄存器打印也产生了中断标志,但没有进入注册的中断函数,看手册里面这样写
Software Generated Interrupts (SGIs): SGIs are generated by writing to the Cortex-A15 Software
Generated Interrupt Register (GICD_SGIR). A maximum of 16 SGIs (ID0–ID15) can be generated for
the CPU interface. An SGI has edge-triggered properties. The software triggering of the interrupt is
equivalent to the edge transition of the interrupt signal on a peripheral input.
• Private Peripheral Interrupts (PPIs): A PPI is an interrupt generated by a peripheral that is specific to
the processor. Although interrupts ID16–ID31 are dedicated to PPIs in general, only seven PPIs are
actually used for the CPU interface (ID25–ID31). Interrupts ID16–ID24 are reserved (not used).
• Shared Peripheral Interrupts (SPIs): SPIs are triggered by events generated on associated interrupt
input lines. In this device, the GIC is configured to support 160 SPIs corresponding to its external
IRQS[159:0] signals. SPIs start at ID32 and their mapping is presented in Section 17.3.1.
For detailed information about this module and description of SGIs and PPIs, see the ARM Cortex-A15
MPCore Technical Reference Manual (available at infocenter.arm.com/help/index.jsp).
是否是AM5718只支持160个中断,而现在申请到的中断号是209,是否不支持,请解答,谢谢!