boards/esp32[c3|c6|h2]: Fix GPIO function used by the button
This commit fixes the function to select the GPIO behavior for the pins associated to the board's button. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit is contained in:
parent
3430ad2e1c
commit
6db437e2de
4 changed files with 4 additions and 4 deletions
|
|
@ -75,7 +75,7 @@
|
|||
|
||||
uint32_t board_button_initialize(void)
|
||||
{
|
||||
esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_3 | PULLUP);
|
||||
esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_2 | PULLUP);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@
|
|||
|
||||
uint32_t board_button_initialize(void)
|
||||
{
|
||||
esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_3 | PULLUP);
|
||||
esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_2 | PULLUP);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@
|
|||
|
||||
uint32_t board_button_initialize(void)
|
||||
{
|
||||
esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_3 | PULLUP);
|
||||
esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_2 | PULLUP);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@
|
|||
|
||||
uint32_t board_button_initialize(void)
|
||||
{
|
||||
esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_3 | PULLUP);
|
||||
esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_2 | PULLUP);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue