Skip to content

Commit

Permalink
Merge pull request #93 from stm32-rs/fix-ci
Browse files Browse the repository at this point in the history
Fix ETHERNET_PTP being re-exported without ptp feature
  • Loading branch information
datdenkikniet authored Mar 14, 2024
2 parents 20776f0 + c7b2603 commit b6d2ecf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ pub fn setup_peripherals(p: stm32_eth::stm32::Peripherals) -> (Clocks, Gpio, Par
}
}

#[allow(unused_imports)]
pub use pins::*;

#[cfg(any(feature = "stm32f4xx-hal", feature = "stm32f7xx-hal",))]
Expand Down
10 changes: 8 additions & 2 deletions src/peripherals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
//! and `ETHERNET_PTP` that introduce a delay for some registers on F4 parts.

#[cfg(any(feature = "stm32f107", feature = "stm32f7xx-hal"))]
pub use crate::hal::pac::{ETHERNET_DMA, ETHERNET_MAC, ETHERNET_PTP};
pub use crate::hal::pac::{ETHERNET_DMA, ETHERNET_MAC};

#[cfg(all(any(feature = "stm32f107", feature = "stm32f7xx-hal"), feature = "ptp"))]
pub use crate::hal::pac::ETHERNET_PTP;

#[cfg(feature = "stm32f4xx-hal")]
pub use pac_override_impl::{ETHERNET_DMA, ETHERNET_MAC, ETHERNET_PTP};
pub use pac_override_impl::{ETHERNET_DMA, ETHERNET_MAC};

#[cfg(all(feature = "stm32f4xx-hal", feature = "ptp"))]
pub use pac_override_impl::ETHERNET_PTP;

#[cfg(feature = "stm32f4xx-hal")]
mod pac_override_impl {
Expand Down

0 comments on commit b6d2ecf

Please sign in to comment.