components: remove some unneeded headers from source files

This commit is contained in:
Renz Bagaporo
2020-09-03 18:17:24 +08:00
parent 982d4be760
commit b3a7c6e27e
15 changed files with 31 additions and 30 deletions

View File

@@ -16,7 +16,6 @@
#include "esp_err.h"
#include "esp_attr.h"
#include "esp_spi_flash.h"
#include "esp_private/system_internal.h"
#include "esp_private/gdbstub.h"
#include "esp_private/usb_console.h"

View File

@@ -19,6 +19,7 @@
#include "esp_attr.h"
#include "esp_sleep.h"
#include "esp_private/esp_timer_private.h"
#include "esp_private/system_internal.h"
#include "esp_log.h"
#include "esp_newlib.h"
#include "esp_timer.h"
@@ -429,7 +430,7 @@ esp_err_t esp_light_sleep_start(void)
*/
esp_timer_private_lock();
s_config.rtc_ticks_at_sleep_start = rtc_time_get();
uint64_t frc_time_at_start = esp_timer_get_time();
uint64_t frc_time_at_start = esp_system_get_time();
DPORT_STALL_OTHER_CPU_START();
// Decide which power domains can be powered down
@@ -475,7 +476,7 @@ esp_err_t esp_light_sleep_start(void)
// FRC1 has been clock gated for the duration of the sleep, correct for that.
uint64_t rtc_ticks_at_end = rtc_time_get();
uint64_t frc_time_at_end = esp_timer_get_time();
uint64_t frc_time_at_end = esp_system_get_time();
uint64_t rtc_time_diff = rtc_time_slowclk_to_us(rtc_ticks_at_end - s_config.rtc_ticks_at_sleep_start,
esp_clk_slowclk_cal_get());