1 /*
2  * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #pragma once
8 #include <stdint.h>
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 /**
15  * @file esp32s2/rtc.h
16  *
17  * This file contains declarations of rtc related functions.
18  */
19 
20 /**
21  * @brief Get current value of RTC counter in microseconds
22  *
23  * Note: this function may take up to 1 RTC_SLOW_CLK cycle to execute
24  *
25  * @return current value of RTC counter in microseconds
26  */
27 uint64_t esp_rtc_get_time_us(void);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32