Use the correct AlternateFunction for GPIO (#137)

This commit is contained in:
Björn Quentin 2022-08-08 13:02:40 +02:00 committed by GitHub
parent 82371f526c
commit 2a1ab6da0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()