Skip to main content

Module stm32f7_eth

Module stm32f7_eth 

Source
Expand description

embassy-net driver for the STM32F7 ETH MAC + LAN8742A PHY.

Same shape as super::qemu_shm::QemuShmDriver — the differences are all behind the C entry points (ove_stm32f7_eth_async_* vs ove_qemu_net_async_*). For now the driver polls; spawn a poller task alongside the embassy-net Runner:

#[embassy_executor::task]
async fn poll_task() {
    loop {
        embassy_time::Timer::after_millis(2).await;
        ove::async_net::stm32f7_eth::wake_poll();
    }
}

ISR-backed wake (via HAL_ETH_IRQHandler) is a future optimisation — the STM32F7 ETH IRQ exists but stock oveRTOS doesn’t enable it (the lwIP backend also polls).

Structs§

Stm32f7EthDriver
STM32F7 ETH MAC driver.
Stm32f7EthRx
Stm32f7EthTx

Constants§

MTU
Max Ethernet frame size (Ethernet header + IP MTU + CRC slack).

Functions§

wake_poll
Wake the embassy-net runner to re-poll the ETH MAC.