examples/ulp: Add using esp_deep_sleep_disable_rom_logging

This commit is contained in:
Konstantin Kondrashov 2018-09-04 18:21:34 +08:00
parent 38098b713f
commit dbad72e6b5
3 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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.

View file

@ -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()