A device’s ISR_Handler()
function is used to handle each device’s interrupts. See section 7-5-5 for more details on how to handle each device’s interrupts.
Files
Every device driver’s net_dev.c
Prototype
Note that since every device driver’s ISR_Handler()
function is accessed only by function pointer via the device driver’s API structure, it doesn’t need to be globally available and should therefore be declared as ‘static
’.
Arguments
pif
Pointer to the interface to handle network device interrupts.
...
Returned Value
None.
Required Configuration
None.
Notes / Warnings
Each device’s NetDev_ISR_Handler()
should never return early but check all applicable interrupt sources to see if they are active. This additional checking is necessary because multiple interrupt sources may be set within the interrupt response time and will reduce the number and overhead of handling interrupts.