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 8775f18 commit bc217e7Copy full SHA for bc217e7
src/ptp/mod.rs
@@ -65,10 +65,9 @@ impl EthernetPTP {
65
(stssi, tsa)
66
}
67
68
- pub(crate) fn new(_eth_mac: ÐERNET_MAC, eth_ptp: ETHERNET_PTP, clocks: Clocks) -> Self {
69
- // Mask timestamp interrupt register, required for stm32f107 according to AN3411
70
- #[cfg(feature = "stm32f1xx-hal")]
71
- _eth_mac.macimr.modify(|_, w| w.tstim().set_bit());
+ pub(crate) fn new(eth_mac: ÐERNET_MAC, eth_ptp: ETHERNET_PTP, clocks: Clocks) -> Self {
+ // Mask timestamp interrupt register
+ eth_mac.macimr.modify(|_, w| w.tstim().set_bit());
72
73
let hclk = clocks.hclk().to_Hz();
74
0 commit comments