Feature-gate time-driver in embassy-rp

This commit is contained in:
Mathias
2022-09-09 12:45:03 +02:00
parent 3f672c8a93
commit f46b838746
4 changed files with 6 additions and 2 deletions

View File

@ -8,6 +8,7 @@ pub mod dma;
pub mod gpio;
pub mod interrupt;
pub mod spi;
#[cfg(feature = "time-driver")]
pub mod timer;
pub mod uart;
#[cfg(feature = "nightly")]
@ -108,6 +109,7 @@ pub fn init(_config: config::Config) -> Peripherals {
unsafe {
clocks::init();
#[cfg(feature = "time-driver")]
timer::init();
dma::init();
}