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

This commit is contained in:
Piotr Esden-Tempski 2011-01-13 15:12:07 -08:00
parent 51a3044232
commit ab88871ef6
3 changed files with 3 additions and 6 deletions

View File

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

View File

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

View File

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