Versions Compared

Key

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

...

Anchor10417201041720 Stopping a Network Device Anchor10417211041721NetDev_Stop() is called once each time an interface is stopped. Anchor

10417221041722NetDev_Stop() must perform the following operations:

...

  1. Disable the receiver and transmitter. Anchor10417241041724
  2. Disable all local MAC interrupt sources. Anchor10417251041725
  3. Clear all local MAC interrupt status flags. Anchor10417261041726
  4. For DMA devices, re-initialize all receive descriptors. Anchor10417271041727
  5. For DMA devices, free all transmit descriptors by calling NetOS_IF_DeallocTaskPost() with the address of the transmit descriptor data areas. Anchor10417281041728
  6. For DMA devices, re-initialize all transmit descriptors. Anchor10417291041729
  7. Set perr to NET_DEV_ERR_NONE if no error occurs. Otherwise, set perr to an appropriate network device error code.