We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ecee0 commit 1684e8aCopy full SHA for 1684e8a
src/mac/mod.rs
@@ -1,6 +1,6 @@
1
//! Ethernet MAC driver implementation
2
3
-use core::ops::Deref;
+use core::ops::{Deref, DerefMut};
4
5
use crate::{
6
hal::rcc::Clocks,
@@ -261,6 +261,16 @@ where
261
}
262
263
264
+impl<MDIO, MDC> DerefMut for EthernetMACWithMii<MDIO, MDC>
265
+where
266
+ MDIO: MdioPin,
267
+ MDC: MdcPin,
268
+{
269
+ fn deref_mut(&mut self) -> &mut Self::Target {
270
+ &mut self.eth_mac
271
+ }
272
+}
273
+
274
impl<MDIO, MDC> EthernetMACWithMii<MDIO, MDC>
275
where
276
MDIO: MdioPin,
0 commit comments