mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
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:
committed by
Xiang Xiao
parent
3430ad2e1c
commit
6db437e2de
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user