在线问答
直播中

linux大叔

9年用户 74经验值
擅长:28347
私信 关注

【OK210试用体验】+Linux平台下OK210的裸机开发指南_中断

s5pv210数据手册介绍中断相当简洁:
pple-interchange-newline">1.1 OVERVIEW OF VECTORED INTERRUPT CONTROLLER
The interrupt controller in S5PV210 is composed of four Vectored Interrupt Controller (VIC), ARM PrimeCell
PL192 and four TrustZone Interrupt Controller (TZIC), SP890.
Four TZIC’s and four VIC’s are daisy-chained to support up to 93 interrupt sources. The TZIC provides a software
interface to the secure interrupt system in a TrustZone design. It provides secure control of the nFIQ interrupt and
masks the interrupt source(s) from the interrupt controller on the non-secure side of the system (VIC). Use the
latter to generate nIRQ signal.
To generate nFIQ from the non-secure interrupt sources, the TZIC0 takes the nNSFIQIN signal from the nonsecure interrupt controller.
1.1.1 KEY FEATURES OF VECTORED INTERRUPT CONTROLLER
• Supports 93 vectored IRQ interrupts
• Fixed hardware interrupts priority levels
• Programmable interrupt priority levels
• Supports Hardware interrupt priority level masking
• Programmable interrupt priority level masking
• Generates IRQ and FIQ
• Generates Software interrupt
• Test registers
• Raw interrupt status
• Interrupt request status
• Supports Privileged mode for restricted access
要想使用其中断,还是直接看寄存器会比较清楚。这一就不一一解释寄存器,大家可以自己看看。
下面分析是代码,这份代码有参考别人代码写的。


更多回帖

发帖
×
20
完善资料,
赚取积分