rp/timer: add

This commit is contained in:
Dario Nieuwenhuis
2021-07-12 02:45:42 +02:00
parent c210a6efd1
commit 7547c8d8d6
6 changed files with 207 additions and 4 deletions

View File

@ -11,10 +11,12 @@ pub use rp2040_pac2 as pac;
pub(crate) mod fmt;
pub mod interrupt;
pub use embassy_macros::interrupt;
pub mod dma;
pub mod gpio;
pub mod spi;
pub mod timer;
pub mod uart;
mod clocks;
@ -64,6 +66,11 @@ embassy_extras::peripherals! {
SPI0,
SPI1,
TIMER_ALARM0,
TIMER_ALARM1,
TIMER_ALARM2,
TIMER_ALARM3,
DMA_CH0,
DMA_CH1,
DMA_CH2,
@ -100,6 +107,7 @@ pub fn init(_config: config::Config) -> Peripherals {
unsafe {
clocks::init();
timer::init();
}
peripherals