OVMS3-idf/components
Ivan Grokhotkov 0fe765a977 Merge branch 'feature/32k_xtal' into 'master'
add support for 32k XTAL as RTC_SLOW_CLK source

- RTC_CNTL_SLOWCLK_FREQ define is removed; rtc_clk_slow_freq_get_hz
  function can be used instead to get an approximate RTC_SLOW_CLK
  frequency

- Clock calibration is performed at startup. The value is saved and used
  for timekeeping and when entering deep sleep.

- When using the 32k XTAL, startup code will wait for the oscillator to
  start up. This can be possibly optimized by starting a separate task
  to wait for oscillator startup, and performing clock switch in that
  task.

- Fix a bug that 32k XTAL would be disabled in rtc_clk_init.

- Fix a rounding error in rtc_clk_cal, which caused systematic frequency
  error.

- Fix an overflow bug which caused rtc_clk_cal to timeout early if the
  slow_clk_cycles argument would exceed certain value

- Improve 32k XTAL oscillator startup time by introducing bootstrapping
  code, which uses internal pullup/pulldown resistors on 32K_N/32K_P
  pins to set better initial conditions for the oscillator.

Ref TW11683.

Ref https://esp32.com/viewtopic.php?f=13&t=1570

Fixes https://github.com/espressif/esp-idf/issues/337.

See merge request !696
2017-04-26 14:01:59 +08:00
..
app_update Enable checks for encrypted flash in OTA 2017-04-11 19:10:26 +08:00
aws_iot AWS IoT Device SDK Support 2017-03-13 17:23:29 +08:00
bootloader Merge branch 'feature/32k_xtal' into 'master' 2017-04-26 14:01:59 +08:00
bootloader_support secure boot: Fix bootloader image verification failure 2017-04-26 11:23:35 +10:00
bt bluedroid: Fix compilation warnings related to aliasing 2017-04-21 11:31:40 +10:00
coap coap: Initialise/update the libcoap submodule 2017-01-10 11:12:02 +11:00
cxx cxx: add iostreams test 2017-01-11 15:03:14 +08:00
driver Merge branch 'bugfix/sdmmc_timeout' into 'master' 2017-04-25 16:27:12 +08:00
esp32 Add support for 32k XTAL as RTC_SLOW_CLK source 2017-04-26 12:43:22 +08:00
espcoredump bugfix: fixed path to esptool when there is no compiled python module for it 2017-03-21 13:30:38 +03:00
esptool_py esptool: Update to include ESP32-D2WD support (and other SPI flash remapping) 2017-04-13 16:25:15 +10:00
ethernet ethernet: Add convenience functions esp_eth_smi_wait_value() & esp_eth_smi_wait_set() 2017-04-20 18:03:00 +10:00
expat Build system: Raise warning level 2016-11-16 15:57:34 +11:00
fatfs Merge branch 'feature/wear_levelling' into 'master' 2017-04-25 19:46:11 +08:00
freertos esp32: Adds functionality for application tracing over JTAG 2017-04-17 23:26:29 +03:00
idf_test component/bt: implement classic Bluetooth profiles A2DP(sink) and AVRCP(controller) 2017-04-10 16:12:21 +08:00
jsmn Add jsmn JSON parser component 2017-03-07 10:18:47 +11:00
json cJSON:Add float format process 2017-01-09 17:51:48 +08:00
log esp32: Adds functionality for application tracing over JTAG 2017-04-17 23:26:29 +03:00
lwip lwip: fix error when building on OS X, only build ppp if enabled 2017-04-25 17:22:09 +08:00
mbedtls mbedtls port: Fix detection of EWOULDBLOCK/EAGAIN with non-blocking sockets 2017-04-21 10:46:34 +10:00
mdns Add AFL fuzz test 2017-04-05 09:23:09 +03:00
micro-ecc micro-ecc: Add submodule dependency 2016-11-17 09:18:51 +11:00
newlib Add support for 32k XTAL as RTC_SLOW_CLK source 2017-04-26 12:43:22 +08:00
nghttp components/coap: Add libcoap port for ESP32 platform 2016-12-30 15:05:26 +08:00
nvs_flash move Catch framework header into tools directory 2017-04-17 11:01:18 +08:00
openssl components/openssl : Fix compilation error when openssl debugging is enabled 2017-02-20 09:45:50 +08:00
partition_table Kconfig: fix “symbol value '' invalid for PHY_DATA_OFFSET” warning 2017-04-17 11:01:17 +08:00
sdmmc esp32: add [ignore] tag to some unit test cases for CI 2017-01-18 17:08:20 +08:00
soc Merge branch 'feature/32k_xtal' into 'master' 2017-04-26 14:01:59 +08:00
spi_flash Merge branch 'feature/esp32_d2wd_support' into 'master' 2017-04-14 20:57:39 +08:00
tcpip_adapter give the AP and STA netifs different names for ease of debugging lwip 2017-04-11 20:40:36 +08:00
ulp Add support for 32k XTAL as RTC_SLOW_CLK source 2017-04-26 12:43:22 +08:00
vfs docs: use custom roles to generate GitHub links 2017-01-20 17:22:47 +08:00
wear_levelling wear_levelling: add unit test sub-component 2017-04-17 11:01:18 +08:00
wpa_supplicant wpa2 enterprise: change the type macro to platform default macro ESP_PLATFORM. 2016-11-25 16:56:09 +08:00
xtensa-debug-module trace: add Kconfig options for app level trace 2017-04-17 22:19:14 +03:00