mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 20:54:24 +00:00
bootloader: Small cleanup and docs for factory reset level config
- Add to docs & config descriptions - Change to a "choice" to become self-documenting - Keep the bootloader_common_check_long_hold_gpio() function for compatibility
This commit is contained in:
@@ -39,7 +39,12 @@
|
||||
|
||||
static const char* TAG = "boot_comm";
|
||||
|
||||
esp_comm_gpio_hold_t bootloader_common_check_long_hold_gpio(uint32_t num_pin, uint32_t delay_sec, int level)
|
||||
esp_comm_gpio_hold_t bootloader_common_check_long_hold_gpio(uint32_t num_pin, uint32_t delay_sec)
|
||||
{
|
||||
return bootloader_common_check_long_hold_gpio_level(num_pin, delay_sec, false);
|
||||
}
|
||||
|
||||
esp_comm_gpio_hold_t bootloader_common_check_long_hold_gpio_level(uint32_t num_pin, uint32_t delay_sec, bool level)
|
||||
{
|
||||
esp_rom_gpio_pad_select_gpio(num_pin);
|
||||
if (GPIO_PIN_MUX_REG[num_pin]) {
|
||||
|
Reference in New Issue
Block a user