Changed button and exti tests to use floating input as pullup is not needed.
This commit is contained in:
parent
51a3044232
commit
ab88871ef6
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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…
x
Reference in New Issue
Block a user