File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use core::marker::PhantomData;
4
4
use crate :: rcc:: Rcc ;
5
5
6
6
/// Default pin mode
7
- pub type DefaultMode = Input < Floating > ;
7
+ pub type DefaultMode = Analog ;
8
8
9
9
/// Extension trait to split a GPIO peripheral in independent pins and registers
10
10
pub trait GpioExt {
@@ -87,7 +87,7 @@ macro_rules! gpio {
87
87
/// GPIO parts
88
88
pub struct Parts {
89
89
$(
90
- pub $pxi: $PXi<Input < Floating > >,
90
+ pub $pxi: $PXi<DefaultMode >,
91
91
) +
92
92
}
93
93
@@ -189,9 +189,9 @@ macro_rules! gpio {
189
189
}
190
190
}
191
191
192
- impl Into <$PXi<Analog >> for $PXi<DefaultMode > {
193
- fn into( self ) -> $PXi<Analog > {
194
- self . into_analog ( )
192
+ impl Into <$PXi<Input < Floating > >> for $PXi<DefaultMode > {
193
+ fn into( self ) -> $PXi<Input < Floating > > {
194
+ self . into_floating_input ( )
195
195
}
196
196
}
197
197
You can’t perform that action at this time.
0 commit comments