...
Anchor
NetDev_Stop()
is called once each time an interface is stopped.NetDev_Stop()
must perform the following operations:...
- Disable the receiver and transmitter.
Anchor 1041724 1041724 - Disable all local MAC interrupt sources.
Anchor 1041725 1041725 - Clear all local MAC interrupt status flags.
Anchor 1041726 1041726 - For DMA devices, re-initialize all receive descriptors.
Anchor 1041727 1041727 - For DMA devices, free all transmit descriptors by calling
NetOS_IF_DeallocTaskPost()
with the address of the transmit descriptor data areas.Anchor 1041728 1041728 - For DMA devices, re-initialize all transmit descriptors.
Anchor 1041729 1041729 - Set
perr
toNET_DEV_ERR_NONE
if no error occurs. Otherwise, setperr
to an appropriate network device error code.