diff options
| -rw-r--r-- | embassy-rp/src/float/mod.rs | 1 | ||||
| -rw-r--r-- | embassy-rp/src/lib.rs | 2 | ||||
| -rw-r--r-- | embassy-rp/src/rtc/mod.rs | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/embassy-rp/src/float/mod.rs b/embassy-rp/src/float/mod.rs index 1df8c0e08..3ad6f1c50 100644 --- a/embassy-rp/src/float/mod.rs +++ b/embassy-rp/src/float/mod.rs | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | #![cfg(feature = "rp2040")] | ||
| 2 | // Credit: taken from `rp-hal` (also licensed Apache+MIT) | 1 | // Credit: taken from `rp-hal` (also licensed Apache+MIT) |
| 3 | // https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/src/float/mod.rs | 2 | // https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/src/float/mod.rs |
| 4 | 3 | ||
diff --git a/embassy-rp/src/lib.rs b/embassy-rp/src/lib.rs index 006588c54..0bcc58b86 100644 --- a/embassy-rp/src/lib.rs +++ b/embassy-rp/src/lib.rs | |||
| @@ -24,6 +24,7 @@ pub mod bootsel; | |||
| 24 | pub mod clocks; | 24 | pub mod clocks; |
| 25 | pub mod dma; | 25 | pub mod dma; |
| 26 | pub mod flash; | 26 | pub mod flash; |
| 27 | #[cfg(feature = "rp2040")] | ||
| 27 | mod float; | 28 | mod float; |
| 28 | pub mod gpio; | 29 | pub mod gpio; |
| 29 | pub mod i2c; | 30 | pub mod i2c; |
| @@ -32,6 +33,7 @@ pub mod multicore; | |||
| 32 | pub mod pwm; | 33 | pub mod pwm; |
| 33 | mod reset; | 34 | mod reset; |
| 34 | pub mod rom_data; | 35 | pub mod rom_data; |
| 36 | #[cfg(feature = "rp2040")] | ||
| 35 | pub mod rtc; | 37 | pub mod rtc; |
| 36 | pub mod spi; | 38 | pub mod spi; |
| 37 | #[cfg(feature = "time-driver")] | 39 | #[cfg(feature = "time-driver")] |
diff --git a/embassy-rp/src/rtc/mod.rs b/embassy-rp/src/rtc/mod.rs index 4ba5bad4b..2ce7ac645 100644 --- a/embassy-rp/src/rtc/mod.rs +++ b/embassy-rp/src/rtc/mod.rs | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | #![cfg(feature = "rp2040")] | ||
| 2 | //! RTC driver. | 1 | //! RTC driver. |
| 3 | mod filter; | 2 | mod filter; |
| 4 | 3 | ||
