Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NetDev_ISR_Handler()

...

1044185NetDev_ISR_Handler() is the device interrupt handler. In general, the device interrupt handler must perform the following functions:

...

a Post the address of the data area that has completed transmission to the transmit buffer de-allocation task by calling NetOS_IF_TxDeallocTaskPost() with the pointer to the data area that has completed transmission.

...

b Call NetOS_Dev_TxRdySignal() with the interface number that has just completed transmission.

...

External or CPU’s CPU’s integrated interrupt controllers should be cleared from within the network device’s device’s BSP-level ISR after NetDev_ISR_Handler() returns. Additionally, it is highly recommended that device driver ISR handlers be kept as short as possible to reduce the amount of interrupt latency in the system.

Anchor10476471047647 Each device’s Each device’s NetDev_ISR_Handler() should 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. NetDev_ISR_Handler() should never return early.