at91rm9200_fiq_linux_driver
所属分类:Linux/Unix编程
开发工具:Unix_Linux
文件大小:9KB
下载次数:73
上传日期:2008-06-27 16:02:22
上 传 者:
leozhang303
说明: linux内核不提供fiq的驱动的,这里是一个at91rm9200-fiq的驱动的示例
(Fiq linux kernel does not provide the driver and here is a driver at91rm9200-fiq example)
文件列表:
at91rm9200 fiq的linux驱动程序\at91_fiq.c (10605, 2008-05-22)
at91rm9200 fiq的linux驱动程序\at91-fiq.patch (9430, 2008-04-22)
at91rm9200 fiq的linux驱动程序\at91rm9200_fiq_ipc_type.h (1059, 2008-05-20)
at91rm9200 fiq的linux驱动程序 (0, 2008-06-27)
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
近期下载者:
相关文件:
收藏者: