Feature-gate time-driver in embassy-rp
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user