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