Formatting
This commit is contained in:
parent
c4b3488f7f
commit
e1d2ba07a7
1 changed files with 4 additions and 2 deletions
|
@ -109,8 +109,10 @@ macro_rules! new_pin {
|
||||||
// Do not call set_speed on AFType::Input, as MODE and CNF bits are not independent
|
// Do not call set_speed on AFType::Input, as MODE and CNF bits are not independent
|
||||||
// for gpio_v1
|
// for gpio_v1
|
||||||
match $aftype {
|
match $aftype {
|
||||||
crate::gpio::AFType::Input => {},
|
crate::gpio::AFType::Input => {}
|
||||||
_ => {pin.set_speed($speed);},
|
_ => {
|
||||||
|
pin.set_speed($speed);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
Some(pin.map_into())
|
Some(pin.map_into())
|
||||||
}};
|
}};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue