2021-11-06 05:23:21 -04:00
|
|
|
/*
|
2022-01-17 21:32:56 -05:00
|
|
|
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
|
2021-11-06 05:23:21 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2022-01-17 21:32:56 -05:00
|
|
|
* @file esp32c2/rtc.h
|
2021-11-06 05:23:21 -04:00
|
|
|
*
|
|
|
|
* This file contains declarations of rtc related functions.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Get current value of RTC counter in microseconds
|
|
|
|
*
|
|
|
|
* Note: this function may take up to 1 RTC_SLOW_CLK cycle to execute
|
|
|
|
*
|
|
|
|
* @return current value of RTC counter in microseconds
|
|
|
|
*/
|
|
|
|
uint64_t esp_rtc_get_time_us(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|