nrf: add PWM

This commit is contained in:
Dario Nieuwenhuis
2021-05-12 04:56:11 +02:00
parent 0310e4d458
commit f9bcf6df6b
8 changed files with 366 additions and 0 deletions

View File

@@ -18,6 +18,9 @@ embassy_extras::peripherals! {
// SAADC
SAADC,
// PWM
PWM0,
// TIMER
TIMER0,
TIMER1,
@@ -115,6 +118,8 @@ impl_spim!(SPI0, SPIM0, SPIM0_SPIS0_SPI0);
impl_twim!(TWI0, TWIM0, TWIM0_TWIS0_TWI0);
impl_pwm!(PWM0, PWM0, PWM0);
impl_timer!(TIMER0, TIMER0, TIMER0);
impl_timer!(TIMER1, TIMER1, TIMER1);
impl_timer!(TIMER2, TIMER2, TIMER2);