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,
@ -116,6 +119,8 @@ impl_spim!(SPI1, SPIM1, SPIM1_SPIS1_SPI1);
impl_twim!(TWISPI0, TWIM0, TWIM0_TWIS0_TWI0_SPIM0_SPIS0_SPI0);
impl_pwm!(PWM0, PWM0, PWM0);
impl_timer!(TIMER0, TIMER0, TIMER0);
impl_timer!(TIMER1, TIMER1, TIMER1);
impl_timer!(TIMER2, TIMER2, TIMER2);