-
Notifications
You must be signed in to change notification settings - Fork 215
Open
Description
These pertains to the official doc.rs page which can be found here. I was unsure where else I could make an issue.
The example for accessing a GPIO pin is given as:
// Acquire the GPIOC peripheral
// NOTE: `dp` is the device peripherals from the `PAC` crate
let mut gpioa = dp.GPIOA.split();To my best knowledge, this is incorrect. split() must recieve an argument for the Reset and Clock Control:
pub trait GpioExt {
type Parts;
// Required method
fn split(self, rcc: &mut RCC) -> Self::Parts;
}Metadata
Metadata
Assignees
Labels
No labels