From ab88871ef6c42ff6268412b66669b77a892cc409 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Thu, 13 Jan 2011 15:12:07 -0800 Subject: Changed button and exti tests to use floating input as pullup is not needed. --- examples/stm32/stm32-h103/button/button.c | 3 +-- examples/stm32/stm32-h103/exti_both/exti_both.c | 3 +-- examples/stm32/stm32-h103/exti_rising_falling/exti_rising_falling.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'examples/stm32') 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); -- cgit v1.2.3