OVMS3-idf/components/newlib
Ivan Grokhotkov 6353bc40d7 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.
2017-04-26 12:43:22 +08:00
..
include newlib: change definition of assert for release builds 2017-01-17 00:49:38 +08:00
lib newlib: build with wcsftime function 2017-01-11 15:03:12 +08:00
platform_include newlib: implement time syscalls 2016-11-02 17:31:35 +08:00
test esp32: add [ignore] tag to some unit test cases for CI 2017-01-18 17:08:20 +08:00
.gitignore Initial public version 2016-08-17 23:08:22 +08:00
.gitmodules Initial public version 2016-08-17 23:08:22 +08:00
component.mk build system: Project ELF should depend on linker scripts, binary libraries 2016-12-12 15:58:53 +11:00
COPYING.NEWLIB Initial public version 2016-08-17 23:08:22 +08:00
libc_discard.list Initial public version 2016-08-17 23:08:22 +08:00
locks.c Add xPortInIsrContext function + unit test. This function returns true when the current CPU runs in an interrupt handler context. 2017-03-02 17:00:32 +08:00
Makefile.old Initial public version 2016-08-17 23:08:22 +08:00
reent_init.c vfs: code review fixes 2016-10-27 17:21:17 +08:00
syscall_table.c newlib: add "full" formatting support, add missing functions 2016-12-08 11:04:54 +08:00
syscalls.c panic handlers: Print the PC address where abort() was called, don't dump registers 2016-12-28 10:09:40 +11:00
time.c Add support for 32k XTAL as RTC_SLOW_CLK source 2017-04-26 12:43:22 +08:00