mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Move #![cfg]s to lib.rs
This commit is contained in:
parent
05cb1baf37
commit
ffdc60d6fb
@ -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
|
||||
|
||||
|
@ -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")]
|
||||
|
@ -1,4 +1,3 @@
|
||||
#![cfg(feature = "rp2040")]
|
||||
//! RTC driver.
|
||||
mod filter;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user