Changed button and exti tests to use floating input as pullup is not needed.
This commit is contained in:
@@ -49,8 +49,7 @@ void button_setup(void)
|
|||||||
|
|
||||||
/* Set GPIO0 (in GPIO port A) to 'input open-drain'. */
|
/* Set GPIO0 (in GPIO port A) to 'input open-drain'. */
|
||||||
gpio_set_mode(GPIOA, GPIO_MODE_INPUT,
|
gpio_set_mode(GPIOA, GPIO_MODE_INPUT,
|
||||||
GPIO_CNF_INPUT_PULL_UPDOWN, GPIO0);
|
GPIO_CNF_INPUT_FLOAT, GPIO0);
|
||||||
gpio_set(GPIOA, GPIO0);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,8 +55,7 @@ void exti_setup(void)
|
|||||||
|
|
||||||
/* Set GPIO0 (in GPIO port A) to 'input open-drain'. */
|
/* Set GPIO0 (in GPIO port A) to 'input open-drain'. */
|
||||||
gpio_set_mode(GPIOA, GPIO_MODE_INPUT,
|
gpio_set_mode(GPIOA, GPIO_MODE_INPUT,
|
||||||
GPIO_CNF_INPUT_PULL_UPDOWN, GPIO0);
|
GPIO_CNF_INPUT_FLOAT, GPIO0);
|
||||||
gpio_set(GPIOA, GPIO0);
|
|
||||||
|
|
||||||
/* configure EXTI subsystem */
|
/* configure EXTI subsystem */
|
||||||
exti_select_source(EXTI0, GPIOA);
|
exti_select_source(EXTI0, GPIOA);
|
||||||
|
|||||||
@@ -58,8 +58,7 @@ void exti_setup(void)
|
|||||||
|
|
||||||
/* Set GPIO0 (in GPIO port A) to 'input open-drain'. */
|
/* Set GPIO0 (in GPIO port A) to 'input open-drain'. */
|
||||||
gpio_set_mode(GPIOA, GPIO_MODE_INPUT,
|
gpio_set_mode(GPIOA, GPIO_MODE_INPUT,
|
||||||
GPIO_CNF_INPUT_PULL_UPDOWN, GPIO0);
|
GPIO_CNF_INPUT_FLOAT, GPIO0);
|
||||||
gpio_set(GPIOA, GPIO0);
|
|
||||||
|
|
||||||
/* configure EXTI subsystem */
|
/* configure EXTI subsystem */
|
||||||
exti_select_source(EXTI0, GPIOA);
|
exti_select_source(EXTI0, GPIOA);
|
||||||
|
|||||||
Reference in New Issue
Block a user