Browse Source

Changed button and exti tests to use floating input as pullup is not needed.

pull/2/head
Piotr Esden-Tempski 14 years ago
parent
commit
ab88871ef6
  1. 3
      examples/stm32/stm32-h103/button/button.c
  2. 3
      examples/stm32/stm32-h103/exti_both/exti_both.c
  3. 3
      examples/stm32/stm32-h103/exti_rising_falling/exti_rising_falling.c

3
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);
}

3
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);

3
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);

Loading…
Cancel
Save