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 
9 #include <stdint.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 /**
16  * @file esp32c3/rtc.h
17  *
18  * This file contains declarations of rtc related functions.
19  */
20 
21 /**
22  * @brief Get current value of RTC counter in microseconds
23  *
24  * Note: this function may take up to 1 RTC_SLOW_CLK cycle to execute
25  *
26  * @return current value of RTC counter in microseconds
27  */
28 uint64_t esp_rtc_get_time_us(void);
29 
30 #ifdef __cplusplus
31 }
32 #endif
33