diff --git a/examples/stm32/stm32-h103/button/button.c b/examples/stm32/stm32-h103/button/button.c index 0380679c..63f32744 100644 --- a/examples/stm32/stm32-h103/button/button.c +++ b/examples/stm32/stm32-h103/button/button.c @@ -49,8 +49,7 @@ void button_setup(void) /* Set GPIO0 (in GPIO port A) to 'input open-drain'. */ gpio_set_mode(GPIOA, GPIO_MODE_INPUT, - GPIO_CNF_INPUT_PULL_UPDOWN, GPIO0); - gpio_set(GPIOA, GPIO0); + GPIO_CNF_INPUT_FLOAT, GPIO0); } diff --git a/examples/stm32/stm32-h103/exti_both/exti_both.c b/examples/stm32/stm32-h103/exti_both/exti_both.c index 62c57fe0..da4c5b60 100644 --- a/examples/stm32/stm32-h103/exti_both/exti_both.c +++ b/examples/stm32/stm32-h103/exti_both/exti_both.c @@ -55,8 +55,7 @@ void exti_setup(void) /* Set GPIO0 (in GPIO port A) to 'input open-drain'. */ gpio_set_mode(GPIOA, GPIO_MODE_INPUT, - GPIO_CNF_INPUT_PULL_UPDOWN, GPIO0); - gpio_set(GPIOA, GPIO0); + GPIO_CNF_INPUT_FLOAT, GPIO0); /* configure EXTI subsystem */ exti_select_source(EXTI0, GPIOA); diff --git a/examples/stm32/stm32-h103/exti_rising_falling/exti_rising_falling.c b/examples/stm32/stm32-h103/exti_rising_falling/exti_rising_falling.c index f50047bc..af1268d6 100644 --- a/examples/stm32/stm32-h103/exti_rising_falling/exti_rising_falling.c +++ b/examples/stm32/stm32-h103/exti_rising_falling/exti_rising_falling.c @@ -58,8 +58,7 @@ void exti_setup(void) /* Set GPIO0 (in GPIO port A) to 'input open-drain'. */ gpio_set_mode(GPIOA, GPIO_MODE_INPUT, - GPIO_CNF_INPUT_PULL_UPDOWN, GPIO0); - gpio_set(GPIOA, GPIO0); + GPIO_CNF_INPUT_FLOAT, GPIO0); /* configure EXTI subsystem */ exti_select_source(EXTI0, GPIOA);