mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
time: only define {get,set}_boot_time if FRC1 or RTC is used as time source
Fixes https://github.com/espressif/esp-idf/issues/238
This commit is contained in:
parent
8c25a0fd9d
commit
7776d3e065
@ -94,6 +94,7 @@ static void IRAM_ATTR frc_timer_isr()
|
||||
|
||||
#endif // WITH_FRC1
|
||||
|
||||
#if defined(WITH_RTC) || defined(WITH_FRC1)
|
||||
static void set_boot_time(uint64_t time_us)
|
||||
{
|
||||
_lock_acquire(&s_boot_time_lock);
|
||||
@ -118,6 +119,7 @@ static uint64_t get_boot_time()
|
||||
_lock_release(&s_boot_time_lock);
|
||||
return result;
|
||||
}
|
||||
#endif //defined(WITH_RTC) || defined(WITH_FRC1)
|
||||
|
||||
void esp_setup_time_syscalls()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user