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:
Ivan Grokhotkov
2017-11-03 14:01:33 +08:00
parent b13cd4adf8
commit dec4a868d0
4 changed files with 26 additions and 6 deletions

View File

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