• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

include/11-Mar-2024-1,372375

ld/11-Mar-2024-2,8602,385

port/11-Mar-2024-8,1415,277

test/11-Mar-2024-1,213931

test_eh_frame_parser/11-Mar-2024-556275

CMakeLists.txtD11-Mar-20242.6 KiB7058

KconfigD11-Mar-202421.4 KiB504432

Makefile.projbuildD11-Mar-2024467 105

README.mdD11-Mar-20241.2 KiB2919

app.lfD11-Mar-2024979 5145

component.mkD11-Mar-20241.9 KiB6032

crosscore_int.cD11-Mar-20245.5 KiB158113

debug_stubs.cD11-Mar-20243.3 KiB9659

eh_frame_parser.cD11-Mar-202437.1 KiB941437

esp_err.cD11-Mar-20241.8 KiB4526

esp_system.cD11-Mar-20243.1 KiB130103

fpga_overrides.cD11-Mar-20242.3 KiB8858

freertos_hooks.cD11-Mar-20244.3 KiB151118

int_wdt.cD11-Mar-20247.3 KiB186126

linker.lfD11-Mar-20241.1 KiB3228

panic.cD11-Mar-202413.5 KiB418280

sdkconfig.renameD11-Mar-20243.9 KiB4845

stack_check.cD11-Mar-20241.1 KiB4019

startup.cD11-Mar-202415 KiB473325

system_time.cD11-Mar-20241.5 KiB5127

task_wdt.cD11-Mar-202414.2 KiB397269

ubsan.cD11-Mar-20249.8 KiB295209

xt_wdt.cD11-Mar-20242.4 KiB9663

README.md

1## System Notes
2
3### Timekeeping
4
5The following are the timekeeping mechanisms available and their differences:
6
71. System time (`esp_system_get_time`)
8
9Time with the origin at `g_startup_time`. The implementation is not handled by `esp_system`,
10but it does provide a default implementation using RTC timer. Currently, `esp_timer`
11provides system time, since the hardware timers are under the control of that
12component. However, no matter the underlying timer, the system time provider
13should maintain the definition of having the origin point at `g_startup_time`.
14
152. `esp_timer` time (`esp_timer_get_time`)
16
17This is the time read from an underlying hardware timer, controlled through config. Origin
18is at the point where the underlying timer starts counting.
19
203. `newlib` time (`gettimeofday`)
21
22Timekeeping function in standard library. Can be set (`settimeofday`) or moved forward/backward (`adjtime`);
23with the possibility of the changes being made persistent through config.
24Currently implemented in terms of system time, as the point of origin is fixed.
25If persistence is enabled, RTC time is also used in conjuction with system time.
26
274. RTC time (`esp_rtc_get_time_us`)
28
29Time read from RTC timer.