Versions Compared

Key

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

Stopping a Network Device

NetDev_Stop() is called once each time an interface is stopped.

NetDev_Stop() must perform the following operations:

...

  1. Disable the receiver and transmitter.

...

  1. Disable all local MAC interrupt sources.

...

  1. Clear all local MAC interrupt status flags.

...

  1. For DMA devices, re-initialize all receive descriptors.

...

  1. For DMA devices, free all transmit descriptors by calling NetOS_IF_DeallocTaskPost() with the address of the transmit descriptor data areas.

...

  1. For DMA devices, re-initialize all transmit descriptors.

...

  1. Set perr to NET_DEV_ERR_NONE if no error occurs. Otherwise, set perr to an appropriate network device error code.