Use the correct AlternateFunction for GPIO (#137)
This commit is contained in:
parent
82371f526c
commit
2a1ab6da0e
@ -552,7 +552,7 @@ macro_rules! impl_input {
|
|||||||
paste! {
|
paste! {
|
||||||
iomux.$iomux_reg.modify(|_, w| unsafe {
|
iomux.$iomux_reg.modify(|_, w| unsafe {
|
||||||
w.mcu_sel()
|
w.mcu_sel()
|
||||||
.bits(2)
|
.bits(AlternateFunction::$gpio_function as u8)
|
||||||
.fun_ie()
|
.fun_ie()
|
||||||
.set_bit()
|
.set_bit()
|
||||||
.fun_wpd()
|
.fun_wpd()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user