mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 06:40:47 +00:00
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! {
|
||||
iomux.$iomux_reg.modify(|_, w| unsafe {
|
||||
w.mcu_sel()
|
||||
.bits(2)
|
||||
.bits(AlternateFunction::$gpio_function as u8)
|
||||
.fun_ie()
|
||||
.set_bit()
|
||||
.fun_wpd()
|
||||
|
Loading…
x
Reference in New Issue
Block a user