2021-08-05 10:30:10 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2021-06-09 22:22:35 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2021-06-09 22:28:23 -04:00
|
|
|
* @file esp32h2/rtc.h
|
2021-06-09 22:22:35 -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
|