📄 readme.txt
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -