The interrupt_ethernet function is the ethernet controller
interrupt request function that gets called immediately when the
ethernet controller receives a new frame. The function first
allocates a block of memory. It then reads and copies the packet from
the ethernet controller into the allocated memory. The function puts
the memory block pointer into the received frames queue by calling
the put_in_queue function.
The interrupt_ethernet function is part of RL-TCPnet. The
prototype is defined in net_config.h.
note
You must provide the interrupt_ethernet function if the
ethernet controller you use is different from the ones provided in
the TCPnet source.
You must provide the interrupt_ethernet function only if
you want to use the ethernet controller in interrupt mode.
When you call alloc_mem to allocate the block of memory,
ensure that the most significant bit in its argument size is
set to 1. This is to prevent system hang error when it is out of
memory.
Return Value
The interrupt_ethernet function does not return any
value.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.