Showing changes from revision #1 to #2:
Added | Removed | Changed
int HAL_IRQEnable(int device)
Entry | |
---|---|
device | Device number to enable interrupts for |
Exit | |
---|---|
0 | Interrupts were previously disabled for this device |
non-zero | Interrupts were previously enabled for this device |
Modifies the interrupt controller so that the ARM receives an IRQ when device generates an interrupt.
Note: Behaviour is undefined if an attempt is made to enable both IRQ and FIQ for the same device.For some interrupt controllers, such as IOMD, any given interrupt line can only operate as an IRQ or a FIQ, and device numbers are allocated independently for each. In these cases, this call simply unmasks the interrupt in the interrupt controller.
Other controllers, such as OMAP, support steering of each interrupt line between IRQ and FIQ independently, and one number space is used for device numbers across both types of interrupt. In these cases, this call additionally configures the interrupt to trigger an IRQ rather than a FIQ. Note: Behaviour is undefined if an attempt is made to enable both IRQ and FIQ for the same device.