nrf/timer: add instance traits

This commit is contained in:
Dario Nieuwenhuis
2021-03-28 22:40:41 +02:00
parent aa0341056e
commit 31b817ed27
2 changed files with 53 additions and 0 deletions

View File

@ -103,6 +103,7 @@ pub mod qspi;
pub mod rtc;
pub mod saadc;
pub mod spim;
pub mod timer;
pub mod uarte;
embassy_extras::peripherals! {
@ -135,6 +136,15 @@ embassy_extras::peripherals! {
// SAADC
SAADC,
// TIMER
TIMER0,
TIMER1,
TIMER2,
#[cfg(any(feature = "52832", feature = "52833", feature = "52840"))]
TIMER3,
#[cfg(any(feature = "52832", feature = "52833", feature = "52840"))]
TIMER4,
// GPIOTE
GPIOTE,
GPIOTE_CH0,