mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-02 16:11:41 +01:00
examples/ulp: disable pullup on GPIO15 to reduce current
Also increase sampling frequency in ulp_adc example and update READMEs. Fixes https://github.com/espressif/esp-idf/issues/1108
This commit is contained in:
@@ -71,8 +71,14 @@ static void init_ulp_program()
|
||||
ulp_low_thr = 1500;
|
||||
ulp_high_thr = 2000;
|
||||
|
||||
/* Set ULP wake up period to 100ms */
|
||||
ulp_set_wakeup_period(0, 100000);
|
||||
/* Set ULP wake up period to 20ms */
|
||||
ulp_set_wakeup_period(0, 20000);
|
||||
|
||||
/* Disable pullup on GPIO15, in case it is connected to ground to suppress
|
||||
* boot messages.
|
||||
*/
|
||||
rtc_gpio_pullup_dis(GPIO_NUM_15);
|
||||
rtc_gpio_hold_en(GPIO_NUM_15);
|
||||
}
|
||||
|
||||
static void start_ulp_program()
|
||||
|
||||
Reference in New Issue
Block a user