mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
examples/ulp: Add using esp_deep_sleep_disable_rom_logging
This commit is contained in:
parent
38098b713f
commit
dbad72e6b5
@ -14,8 +14,6 @@ In this example the input signal is connected to GPIO0. Note that this pin was c
|
||||
|
||||
## Example output
|
||||
|
||||
Note: GPIO15 is connected to GND to disable ROM bootloader output.
|
||||
|
||||
```
|
||||
Not ULP wakeup, initializing ULP
|
||||
Entering deep sleep
|
||||
|
@ -75,11 +75,11 @@ static void init_ulp_program()
|
||||
|
||||
/* Disconnect GPIO12 and GPIO15 to remove current drain through
|
||||
* pullup/pulldown resistors.
|
||||
* GPIO15 may be connected to ground to suppress boot messages.
|
||||
* GPIO12 may be pulled high to select flash voltage.
|
||||
*/
|
||||
rtc_gpio_isolate(GPIO_NUM_12);
|
||||
rtc_gpio_isolate(GPIO_NUM_15);
|
||||
esp_deep_sleep_disable_rom_logging(); // suppress boot messages
|
||||
|
||||
/* Set ULP wake up period to T = 20ms.
|
||||
* Minimum pulse width has to be T * (ulp_debounce_counter + 1) = 80ms.
|
||||
|
@ -76,11 +76,11 @@ static void init_ulp_program()
|
||||
|
||||
/* Disconnect GPIO12 and GPIO15 to remove current drain through
|
||||
* pullup/pulldown resistors.
|
||||
* GPIO15 may be connected to ground to suppress boot messages.
|
||||
* GPIO12 may be pulled high to select flash voltage.
|
||||
*/
|
||||
rtc_gpio_isolate(GPIO_NUM_12);
|
||||
rtc_gpio_isolate(GPIO_NUM_15);
|
||||
esp_deep_sleep_disable_rom_logging(); // suppress boot messages
|
||||
}
|
||||
|
||||
static void start_ulp_program()
|
||||
|
Loading…
x
Reference in New Issue
Block a user