Michael (XIAO Xufeng) ab5c956bdf Merge branch 'bugfix/esp_timer_before_init_v4.3' into 'release/v4.3' %!s(int64=4) %!d(string=hai) anos
..
include eef5add97e Merge branch 'bugfix/fix_esp32s2_deep_sleep_timer_wake_up_fail_backport_v4.3' into 'release/v4.3' %!s(int64=4) %!d(string=hai) anos
port fa85714845 Systimer reset alternative on S2 (and others) (v4.3) %!s(int64=4) %!d(string=hai) anos
test fa85714845 Systimer reset alternative on S2 (and others) (v4.3) %!s(int64=4) %!d(string=hai) anos
CMakeLists.txt 6ef2a7def0 bootloader: fix external 32k xtal not found error %!s(int64=5) %!d(string=hai) anos
Kconfig 3f17cc2ab8 light sleep: fix Flash leakage when its CS pin has no hardware pullup %!s(int64=4) %!d(string=hai) anos
README.md fa85714845 Systimer reset alternative on S2 (and others) (v4.3) %!s(int64=4) %!d(string=hai) anos
component.mk 4cc6b5571b esp_system: support riscv panic %!s(int64=5) %!d(string=hai) anos
esp_async_memcpy.c 626a861115 async_mcp: clean eof flag when prepare rx descriptors %!s(int64=4) %!d(string=hai) anos
intr_alloc.c e361498a2a intr_alloc: re-enable unit test %!s(int64=5) %!d(string=hai) anos
linker.lf d1c800fbbb components: fix ldgen check errors %!s(int64=5) %!d(string=hai) anos
panic.c d6cdb3e0ae usb_serial_jtag: support usb_serial_jtag on esp32c3 %!s(int64=4) %!d(string=hai) anos
sdkconfig.rename 69096ddce5 Security: ESP32C3 memory protection feature (IRAM0/DRAM0) %!s(int64=5) %!d(string=hai) anos
sleep_modes.c e615a9546b Sleep: fix wrong debug level %!s(int64=4) %!d(string=hai) anos
startup.c b5fe84a250 esp_timer: allow querying the timer before esp_timer_init is called %!s(int64=4) %!d(string=hai) anos
system_api.c 8140b10a16 esp_system: Adds sync of FRC & RTC counters in esp_restart (v4.3) %!s(int64=4) %!d(string=hai) anos
system_time.c 5228d9f9ce esp32c3: Apply one-liner/small changes for ESP32-C3 %!s(int64=5) %!d(string=hai) anos

README.md

System Notes

Timekeeping

The following are the timekeeping mechanisms available and their differences:

  1. System time (esp_system_get_time)

Time with the origin at g_startup_time. The implementation is not handled by esp_system, but it does provide a default implementation using RTC timer. Currently, esp_timer provides system time, since the hardware timers are under the control of that component. However, no matter the underlying timer, the system time provider should maintain the definition of having the origin point at g_startup_time.

  1. esp_timer time (esp_timer_get_time)

This is the time read from an underlying hardware timer, controlled through config. Origin is at the point where the underlying timer starts counting.

  1. newlib time (gettimeofday)

Timekeeping function in standard library. Can be set (settimeofday) or moved forward/backward (adjtime); with the possibility of the changes being made persistent through config. Currently implemented in terms of system time, as the point of origin is fixed. If persistence is enabled, RTC time is also used in conjuction with system time.

  1. RTC time (esp_rtc_get_time_us)

Time read from RTC timer.