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

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.