docs: document spi, rtc and rest of uart for embassy-rp

This commit is contained in:
Ulf Lilleengen
2023-12-19 11:26:08 +01:00
parent e45e3e76b5
commit 486b67e895
4 changed files with 83 additions and 2 deletions

View File

@@ -61,9 +61,13 @@ impl Default for Config {
}
}
/// PWM input mode.
pub enum InputMode {
/// Level mode.
Level,
/// Rising edge mode.
RisingEdge,
/// Falling edge mode.
FallingEdge,
}
@@ -77,6 +81,7 @@ impl From<InputMode> for Divmode {
}
}
/// PWM driver.
pub struct Pwm<'d, T: Channel> {
inner: PeripheralRef<'d, T>,
pin_a: Option<PeripheralRef<'d, AnyPin>>,