mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_system: private system time functions for now
This commit is contained in:
parent
da88671491
commit
c70c227591
@ -61,10 +61,20 @@ void esp_reset_reason_set_hint(esp_reset_reason_t hint);
|
|||||||
*/
|
*/
|
||||||
esp_reset_reason_t esp_reset_reason_get_hint(void);
|
esp_reset_reason_t esp_reset_reason_get_hint(void);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get the time in microseconds since startup
|
* @brief Get the time in microseconds since startup
|
||||||
|
*
|
||||||
|
* @returns time since startup in microseconds
|
||||||
*/
|
*/
|
||||||
|
int64_t esp_system_get_time(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get the resolution of the time returned by `esp_system_get_time`.
|
||||||
|
*
|
||||||
|
* @returns the resolution in microseconds
|
||||||
|
*/
|
||||||
|
uint32_t esp_system_get_time_resolution(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -286,19 +286,6 @@ typedef struct {
|
|||||||
*/
|
*/
|
||||||
void esp_chip_info(esp_chip_info_t* out_info);
|
void esp_chip_info(esp_chip_info_t* out_info);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get the time in microseconds since startup
|
|
||||||
*
|
|
||||||
* @returns time since startup in microseconds
|
|
||||||
*/
|
|
||||||
int64_t esp_system_get_time(void);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get the resolution of the time returned by `esp_system_get_time`.
|
|
||||||
*
|
|
||||||
* @returns the resolution in microseconds
|
|
||||||
*/
|
|
||||||
uint32_t esp_system_get_time_resolution(void);
|
|
||||||
|
|
||||||
#if CONFIG_ESP32_ECO3_CACHE_LOCK_FIX
|
#if CONFIG_ESP32_ECO3_CACHE_LOCK_FIX
|
||||||
/**
|
/**
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
#include "esp_private/startup_internal.h"
|
#include "esp_private/startup_internal.h"
|
||||||
#include "esp_private/esp_timer_private.h"
|
#include "esp_private/esp_timer_private.h"
|
||||||
|
#include "esp_private/system_internal.h"
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
#include "esp32/rtc.h"
|
#include "esp32/rtc.h"
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
#include "soc/rtc.h"
|
#include "soc/rtc.h"
|
||||||
#include "esp_rom_sys.h"
|
#include "esp_rom_sys.h"
|
||||||
|
|
||||||
|
#include "esp_private/system_internal.h"
|
||||||
|
|
||||||
#include "esp_time_impl.h"
|
#include "esp_time_impl.h"
|
||||||
|
|
||||||
#include "sdkconfig.h"
|
#include "sdkconfig.h"
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#include "freertos/task.h"
|
#include "freertos/task.h"
|
||||||
|
|
||||||
|
#include "esp_private/system_internal.h"
|
||||||
|
|
||||||
#include "soc/spinlock.h"
|
#include "soc/spinlock.h"
|
||||||
#include "soc/rtc.h"
|
#include "soc/rtc.h"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user