mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +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)
|
// Credit: taken from `rp-hal` (also licensed Apache+MIT)
|
||||||
// https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/src/float/mod.rs
|
// 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 clocks;
|
||||||
pub mod dma;
|
pub mod dma;
|
||||||
pub mod flash;
|
pub mod flash;
|
||||||
|
#[cfg(feature = "rp2040")]
|
||||||
mod float;
|
mod float;
|
||||||
pub mod gpio;
|
pub mod gpio;
|
||||||
pub mod i2c;
|
pub mod i2c;
|
||||||
@ -32,6 +33,7 @@ pub mod multicore;
|
|||||||
pub mod pwm;
|
pub mod pwm;
|
||||||
mod reset;
|
mod reset;
|
||||||
pub mod rom_data;
|
pub mod rom_data;
|
||||||
|
#[cfg(feature = "rp2040")]
|
||||||
pub mod rtc;
|
pub mod rtc;
|
||||||
pub mod spi;
|
pub mod spi;
|
||||||
#[cfg(feature = "time-driver")]
|
#[cfg(feature = "time-driver")]
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#![cfg(feature = "rp2040")]
|
|
||||||
//! RTC driver.
|
//! RTC driver.
|
||||||
mod filter;
|
mod filter;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user