Added PWM implementation and example

This commit is contained in:
2021-12-05 17:28:30 +01:00
parent baec0980b7
commit 9af01f3067
9 changed files with 783 additions and 12 deletions

View File

@ -731,7 +731,7 @@ impl<I: PinId> InputPin for Pin<I, OutputReadablePushPull> {
/// Provide a safe register interface for [`Pin`]s
///
/// This `struct` takes ownership of a [`PinId`] and provides an API to
/// access the corresponding regsiters.
/// access the corresponding registers.
pub(in crate::gpio) struct Registers<I: PinId> {
id: PhantomData<I>,
}

View File

@ -77,6 +77,7 @@ impl From<DynPinMode> for ModeFields {
fields
}
}
//==================================================================================================
// Register Interface
//==================================================================================================