mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
Merge branch 'bugfix/idfci-13866_v6.0' into 'release/v6.0'
backport v6.0: config wakeup gpio pin internal pullup to avoid input floating See merge request espressif/esp-idf!52771
This commit is contained in:
@@ -258,7 +258,7 @@ static int process_gpio_wakeup(int argc, char **argv)
|
|||||||
.pin_bit_mask = BIT64(io_wakeup_num),
|
.pin_bit_mask = BIT64(io_wakeup_num),
|
||||||
.mode = GPIO_MODE_INPUT,
|
.mode = GPIO_MODE_INPUT,
|
||||||
.pull_down_en = GPIO_PULLDOWN_DISABLE,
|
.pull_down_en = GPIO_PULLDOWN_DISABLE,
|
||||||
.pull_up_en = GPIO_PULLUP_DISABLE,
|
.pull_up_en = GPIO_PULLUP_ENABLE,
|
||||||
.intr_type = (io_wakeup_level == 0) ? GPIO_INTR_LOW_LEVEL : GPIO_INTR_HIGH_LEVEL
|
.intr_type = (io_wakeup_level == 0) ? GPIO_INTR_LOW_LEVEL : GPIO_INTR_HIGH_LEVEL
|
||||||
};
|
};
|
||||||
ESP_ERROR_CHECK(gpio_config(&config));
|
ESP_ERROR_CHECK(gpio_config(&config));
|
||||||
|
|||||||
Reference in New Issue
Block a user