Skip to content

Commit bc217e7

Browse files
committed
Mask the timestamp trigger interrupt bit for all parts
1 parent 8775f18 commit bc217e7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ptp/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@ impl EthernetPTP {
6565
(stssi, tsa)
6666
}
6767

68-
pub(crate) fn new(_eth_mac: &ETHERNET_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());
68+
pub(crate) fn new(eth_mac: &ETHERNET_MAC, eth_ptp: ETHERNET_PTP, clocks: Clocks) -> Self {
69+
// Mask timestamp interrupt register
70+
eth_mac.macimr.modify(|_, w| w.tstim().set_bit());
7271

7372
let hclk = clocks.hclk().to_Hz();
7473

0 commit comments

Comments
 (0)