mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
newlib: rename esp_setup_time_syscalls to esp_set_time_from_rtc
This function no longer sets up syscalls, and new name reflects its purpose better.
This commit is contained in:
@@ -268,7 +268,7 @@ void start_cpu0_default(void)
|
||||
_GLOBAL_REENT->_stderr = (FILE*) &__sf_fake_stderr;
|
||||
#endif
|
||||
esp_timer_init();
|
||||
esp_setup_time_syscalls();
|
||||
esp_set_time_from_rtc();
|
||||
#if CONFIG_ESP32_APPTRACE_ENABLE
|
||||
esp_err_t err = esp_apptrace_init();
|
||||
if (err != ESP_OK) {
|
||||
|
@@ -248,7 +248,7 @@ esp_err_t esp_light_sleep_start()
|
||||
|
||||
// At this point, if FRC1 is used for timekeeping, time will be lagging behind.
|
||||
// This will update the microsecond count based on RTC timer.
|
||||
esp_setup_time_syscalls();
|
||||
esp_set_time_from_rtc();
|
||||
|
||||
// However, we do not advance RTOS ticks here; doing so would be rather messy,
|
||||
// as ticks can only be advanced on CPU0.
|
||||
|
Reference in New Issue
Block a user