We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b524a47 commit 55f3eaeCopy full SHA for 55f3eae
src/gpio.rs
@@ -125,7 +125,7 @@ pub trait GpioExt {
125
fn split(self) -> Self::Parts;
126
127
/// Splits the GPIO block into independent pins and registers without resetting its state.
128
- fn split_without_reset(self) -> Self::Parts;
+ unsafe fn split_without_reset(self) -> Self::Parts;
129
}
130
131
/// Marker trait for active states.
@@ -397,7 +397,7 @@ macro_rules! gpio {
397
398
399
400
- fn split_without_reset(self) -> Parts {
+ unsafe fn split_without_reset(self) -> Parts {
401
let rcc = unsafe { &(*RCC::ptr()) };
402
$GPIOX::enable(rcc);
403
0 commit comments