Skip to content

Commit 2e4d90f

Browse files
committed
PTP module
1 parent 977f70f commit 2e4d90f

File tree

4 files changed

+277
-93
lines changed

4 files changed

+277
-93
lines changed

src/lib.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ where
147147

148148
// Configure the ethernet PTP
149149
#[cfg(feature = "ptp")]
150-
let ptp = EthernetPTP::new(parts.ptp.into(), clocks, &dma);
150+
let ptp = EthernetPTP::new(
151+
#[cfg(feature = "f-series")]
152+
parts.ptp.into(),
153+
clocks,
154+
&dma,
155+
);
151156

152157
// Configure the ethernet MAC
153158
let mac = EthernetMAC::new(eth_mac, parts.mmc, clocks, Speed::FullDuplexBase100Tx, &dma)?;
@@ -216,7 +221,12 @@ where
216221

217222
// Configure the ethernet PTP
218223
#[cfg(feature = "ptp")]
219-
let ptp = EthernetPTP::new(parts.ptp.into(), clocks, &dma);
224+
let ptp = EthernetPTP::new(
225+
#[cfg(feature = "f-series")]
226+
parts.ptp.into(),
227+
clocks,
228+
&dma,
229+
);
220230

221231
// Configure the ethernet MAC
222232
let mac = EthernetMAC::new(eth_mac, parts.mmc, clocks, Speed::FullDuplexBase100Tx, &dma)?

0 commit comments

Comments
 (0)