bootloader_common_check_long_hold_gpio() function
Check if a GPIO input is held low for a long period, short period, or not at all. This function will configure the specified GPIO as an input with internal pull-up enabled. If the GPIO input is held low continuously for delay_sec period then it is a long hold. If the GPIO input is held low for less period then it is a short hold.
Arguments
num_pin
Number of the GPIO input.
delay_sec
Input must be driven low for at least this long, continuously.
Return value
esp_comm_gpio_hold_t Type of low level hold detected, if any.
bootloader_common_check_long_hold_gpio() calls 1 function:
![]()
bootloader_common_check_long_hold_gpio()
bootloader_common_check_long_hold_gpio():
![]()
bootloader_common_check_long_hold_gpio()