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

..--

include/03-Aug-2024-2,108538

ld/03-Aug-2024-4,1163,455

port/03-Aug-2024-10,6297,177

task_wdt/03-Aug-2024-1,195767

test_apps/03-Aug-2024-2,5621,901

test_eh_frame_parser/03-Aug-2024-548275

.build-test-rules.ymlD03-Aug-2024576 2014

CMakeLists.txtD03-Aug-20244.6 KiB132107

KconfigD03-Aug-202425.9 KiB600516

README.mdD03-Aug-20241.5 KiB3622

app.lfD03-Aug-2024979 5145

check_system_init_priorities.pyD03-Aug-20243.8 KiB10668

crosscore_int.cD03-Aug-20245.8 KiB182138

debug_stubs.cD03-Aug-20243.3 KiB9558

eh_frame_parser.cD03-Aug-202436.6 KiB932437

esp_err.cD03-Aug-20241.8 KiB5238

esp_ipc.cD03-Aug-20247.2 KiB202144

esp_system.cD03-Aug-20242.1 KiB8467

fpga_overrides.cD03-Aug-20242 KiB8767

freertos_hooks.cD03-Aug-20243.9 KiB150123

int_wdt.cD03-Aug-20247.1 KiB176128

linker.lfD03-Aug-20241.3 KiB3531

panic.cD03-Aug-202415.5 KiB468319

sdkconfig.renameD03-Aug-20243.3 KiB4339

sdkconfig.rename.esp32D03-Aug-20242.6 KiB3530

sdkconfig.rename.esp32c3D03-Aug-20241.8 KiB2521

sdkconfig.rename.esp32s2D03-Aug-20242.5 KiB3329

sdkconfig.rename.esp32s3D03-Aug-20241.7 KiB2420

stack_check.cD03-Aug-2024639 3219

startup.cD03-Aug-202417 KiB516344

system_init_fn.txtD03-Aug-20242.2 KiB3931

system_time.cD03-Aug-20241.1 KiB4731

systick_etm.cD03-Aug-20241.3 KiB4834

ubsan.cD03-Aug-20249.8 KiB314228

xt_wdt.cD03-Aug-20242.5 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.
30
31### Brownout
32
33on some boards, we name BOD1 as ana_bod, to unify the usage, using BOD1 in following passage.
34
35BOD1 will be a little faster then BOD0, but BOD0 can be widely used(can reset rf, flash, or using interrupt, etc.) So, in IDF code, we use BOD1 in bootloader and BOD0 in the app.
36