pub unsafe fn ethernet_init(
eth_mac: ETHERNET_MAC,
eth_mtl: ETHERNET_MTL,
eth_dma: ETHERNET_DMA,
ring: &mut DesRing,
mac_addr: EthernetAddress,
) -> (EthernetDMA<'_>, EthernetMAC)
Expand description
Create and initialise the ethernet driver.
You must move in ETH_MAC, ETH_MTL, ETH_DMA.
Sets up the descriptor structures, sets up the peripheral clocks and GPIO configuration, and configures the ETH MAC and DMA peripherals.
Brings up the PHY.
ยงSafety
EthernetDMA
shall not be moved as it is initialised here