Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
esp32_clock_control.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024-2025 Espressif Systems (Shanghai) Co., Ltd.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_ESP32_CLOCK_CONTROL_H_
8#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_ESP32_CLOCK_CONTROL_H_
9
10#if defined(CONFIG_SOC_SERIES_ESP32)
12#elif defined(CONFIG_SOC_SERIES_ESP32S2)
14#elif defined(CONFIG_SOC_SERIES_ESP32S3)
16#elif defined(CONFIG_SOC_SERIES_ESP32C2)
18#elif defined(CONFIG_SOC_SERIES_ESP32C3)
20#elif defined(CONFIG_SOC_SERIES_ESP32C5)
22#elif defined(CONFIG_SOC_SERIES_ESP32C6)
24#elif defined(CONFIG_SOC_SERIES_ESP32H2)
26#endif /* CONFIG_SOC_SERIES_ESP32xx */
27
28#define ESP32_CLOCK_CONTROL_SUBSYS_CPU 50
29#define ESP32_CLOCK_CONTROL_SUBSYS_RTC_FAST 51
30#define ESP32_CLOCK_CONTROL_SUBSYS_RTC_SLOW 52
31#define ESP32_CLOCK_CONTROL_SUBSYS_RTC_FAST_NOMINAL 53
32#define ESP32_CLOCK_CONTROL_SUBSYS_RTC_SLOW_NOMINAL 54
33
39
44
49
50#endif /* ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_ESP32_CLOCK_CONTROL_H_ */
ESP32-C5 clock definitions for device tree bindings.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Definition esp32_clock_control.h:45
struct esp32_cpu_clock_config cpu
Definition esp32_clock_control.h:46
struct esp32_rtc_clock_config rtc
Definition esp32_clock_control.h:47
Definition esp32_clock_control.h:34
uint32_t cpu_freq
Definition esp32_clock_control.h:36
uint32_t xtal_freq
Definition esp32_clock_control.h:37
int clk_src
Definition esp32_clock_control.h:35
Definition esp32_clock_control.h:40
uint32_t rtc_fast_clock_src
Definition esp32_clock_control.h:41
uint32_t rtc_slow_clock_src
Definition esp32_clock_control.h:42