Handle a network device’s interrupts on a specific interface.
Files
net_bsp.c
Prototype
Code Block |
---|
static void NetDev_ISR_Handler (void); |
Note that since NetDev_ISR_Handler()
is accessed only by function pointer usually via an interrupt vector table, it doesn’t need to be globally available and should therefore be declared as ‘static
’.
...
See also Network Board Support Package.
Examples
Code Block |
---|
static void NetDev_MACB_ISR_Handler_2 (void)
{
NET_ERR err;
NetIF_ISR_Handler(AT91SAM9263-EK_MACB_2_IF_Nbr, NET_DEV_ISR_TYPE_UNKNOWN, &err);
/* Clear external or CPU's integrated interrupt controller. */
}
static void NetDev_MACB_ISR_HandlerRx_2 (void)
{
NET_ERR err;
NetIF_ISR_Handler(AT91SAM9263-EK_MACB_2_IF_Nbr, NET_DEV_ISR_TYPE_RX, &err);
/* Clear external or CPU's integrated interrupt controller. */
} |