refactor(hw_support): combine esp_hw_support rtc header to a single file

This commit is contained in:
Marius Vikhammer
2024-12-27 15:40:46 +08:00
parent 30c34271bb
commit 34c7d62855
27 changed files with 115 additions and 478 deletions

View File

@@ -1,32 +1,10 @@
/*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @file esp32c6/rtc.h
*
* 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
#include "esp_rtc_time.h"
#warning "Header file is deprecated, please include esp_rtc_time.h instead"