Move #![cfg]s to lib.rs

This commit is contained in:
Caleb Jamison 2024-08-09 16:07:30 -04:00
parent 05cb1baf37
commit ffdc60d6fb
3 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,3 @@
#![cfg(feature = "rp2040")]
// Credit: taken from `rp-hal` (also licensed Apache+MIT)
// https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/src/float/mod.rs

View File

@ -24,6 +24,7 @@ pub mod bootsel;
pub mod clocks;
pub mod dma;
pub mod flash;
#[cfg(feature = "rp2040")]
mod float;
pub mod gpio;
pub mod i2c;
@ -32,6 +33,7 @@ pub mod multicore;
pub mod pwm;
mod reset;
pub mod rom_data;
#[cfg(feature = "rp2040")]
pub mod rtc;
pub mod spi;
#[cfg(feature = "time-driver")]

View File

@ -1,4 +1,3 @@
#![cfg(feature = "rp2040")]
//! RTC driver.
mod filter;