diff --git a/src/eth.rs b/src/eth.rs index 9f71623..7f3d3de 100644 --- a/src/eth.rs +++ b/src/eth.rs @@ -328,6 +328,14 @@ impl Device { Self{ rx: RxRing::new(), tx: TxRing::new() } } + // Initialize the ethernet peripherals + // + // # Safety + // + // This iis transitively unsafe since it sets potentially + // unsafe register values. Might ultimately be safe if the values + // are correct. + // // After `init` is called, `Device` shall not be moved. pub unsafe fn init(&mut self, mac: EthernetAddress, eth_mac: &pac::ETHERNET_MAC, diff --git a/src/main.rs b/src/main.rs index ece96ce..78ef457 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ #![deny(warnings)] +#![allow(clippy::missing_safety_doc)] #![no_std] #![no_main]