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

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.