aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/stm32/stm32-h103/button/button.c3
-rw-r--r--examples/stm32/stm32-h103/exti_both/exti_both.c3
-rw-r--r--examples/stm32/stm32-h103/exti_rising_falling/exti_rising_falling.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/examples/stm32/stm32-h103/button/button.c b/examples/stm32/stm32-h103/button/button.c
index 0380679..63f3274 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 62c57fe..da4c5b6 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 f50047b..af1268d 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);