readme.txt
来自「linux内核不提供fiq的驱动的」· 文本 代码 · 共 29 行
TXT
29 行
armISR provides a number of routines for handing IRQ &/or FIQ (enable,
disable, & restore). It also contains ISR & FSR entry & exit MACROs
which are used in interrupt routines.
NOTEs:
1) armISR.c MUST be compiled in ARM mode (not Thumb). Use the gcc
-mthumb-interwork switch if it will be called from Thumb mode code.
2) when using the MACROs, the C code interrupt routine must be declared
with the 'naked' attribute.
void xxxISR(void) __attribute__((naked));
void xxxISR(void)
{
ISR_ENTRY();
// ISR code goes here
// don't forget to signal end-of-interrupt to AIC_EOICR
ISR_EXIT(); // recover registers and return
}
&xxxISR can be put into the appropriate AIC_SVR
Enjoy
-Bill Knight
R O SOftWare &
http://www.theARMPatch.com
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?