2021-11-23 07:11:33 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2017-09-22 11:04:16 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-11-23 07:11:33 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-09-22 11:04:16 -04:00
|
|
|
/**
|
|
|
|
* @file esp_clk_internal.h
|
|
|
|
*
|
|
|
|
* Private clock-related functions
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Initialize clock-related settings
|
|
|
|
*
|
|
|
|
* Called from cpu_start.c, not intended to be called from other places.
|
|
|
|
* This function configures the CPU clock, RTC slow and fast clocks, and
|
|
|
|
* performs RTC slow clock calibration.
|
|
|
|
*/
|
|
|
|
void esp_clk_init(void);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Disables clock of some peripherals
|
|
|
|
*
|
|
|
|
* Called from cpu_start.c, not intended to be called from other places.
|
|
|
|
* This function disables clock of useless peripherals when cpu starts.
|
|
|
|
*/
|
|
|
|
void esp_perip_clk_init(void);
|
2018-03-19 04:05:32 -04:00
|
|
|
|
|
|
|
/* Selects an external clock source (32 kHz) for RTC.
|
|
|
|
* Only internal use in unit test.
|
|
|
|
*/
|
2019-07-16 05:33:30 -04:00
|
|
|
void rtc_clk_select_rtc_slow_clk(void);
|
2021-11-23 07:11:33 -05:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|