![]() |
scugic
Xilinx SDK Drivers API Documentation
|
This file contains a design example using the low level driver, interface of the Interrupt Controller driver.
This example shows the use of the Interrupt Controller with the ARM processor.
none
MODIFICATION HISTORY:
Ver Who Date Changes
1.00a drg 01/30/10 First release
Functions | |
void | SetupInterruptSystem (void) |
This function connects the interrupt handler of the interrupt controller to the processor. More... | |
void | LowInterruptHandler (void *CallbackRef) |
This function is designed to look like an interrupt handler in a device driver. More... | |
int | main (void) |
This is the main function for the Interrupt Controller Low Level example. More... | |
void LowInterruptHandler | ( | void * | CallbackRef | ) |
This function is designed to look like an interrupt handler in a device driver.
This is typically a 2nd level handler that is called from the interrupt controller interrupt handler. This handler would typically perform device specific processing such as reading and writing the registers of the device to clear the interrupt condition and pass any data to an application using the device driver.
CallbackRef | is passed back to the device driver's interrupt handler by the XScuGic driver. It was given to the XScuGic driver in the XScuGic_Connect() function call. It is typically a pointer to the device driver instance variable if using the Xilinx Level 1 device drivers. In this example, we do not care about the callback reference, so we passed it a 0 when connecting the handler to the XScuGic driver and we make no use of it here. |
References XSCUGIC_ACK_INTID_MASK, XSCUGIC_INT_ACK_OFFSET, and XScuGic_ReadReg.
Referenced by SetupInterruptSystem().
int main | ( | void | ) |
This is the main function for the Interrupt Controller Low Level example.
None. |
void SetupInterruptSystem | ( | void | ) |
This function connects the interrupt handler of the interrupt controller to the processor.
This function is separate to allow it to be customized for each application. Each processor or RTOS may require unique processing to connect the interrupt handler.
None. |
References LowInterruptHandler().