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

@@ -68,6 +68,12 @@ static void init_ulp_program()
rtc_gpio_pullup_dis(gpio_num);
rtc_gpio_hold_en(gpio_num);
/* 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);
/* Set ULP wake up period to T = 20ms (3095 cycles of RTC_SLOW_CLK clock).
* Minimum pulse width has to be T * (ulp_debounce_counter + 1) = 80ms.
*/