Zephyr API Documentation
4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
esp32c3_clock.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_ESP32C3_H_
8
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_ESP32C3_H_
9
10
/* Supported CPU clock Sources */
11
#define ESP32_CPU_CLK_SRC_XTAL 0U
12
#define ESP32_CPU_CLK_SRC_PLL 1U
13
#define ESP32_CLK_SRC_RC_FAST 2U
14
15
/* Supported CPU frequencies */
16
#define ESP32_CLK_CPU_PLL_80M 80000000
17
#define ESP32_CLK_CPU_PLL_160M 160000000
18
#define ESP32_CLK_CPU_RC_FAST_FREQ 17500000
19
20
/* Supported XTAL frequencies */
21
#define ESP32_CLK_XTAL_32M 32000000
22
#define ESP32_CLK_XTAL_40M 40000000
23
24
/* Supported RTC fast clock sources */
25
#define ESP32_RTC_FAST_CLK_SRC_XTAL_D2 0
26
#define ESP32_RTC_FAST_CLK_SRC_RC_FAST 1
27
28
/* Supported RTC slow clock sources */
29
#define ESP32_RTC_SLOW_CLK_SRC_RC_SLOW 0
30
#define ESP32_RTC_SLOW_CLK_SRC_XTAL32K 1
31
#define ESP32_RTC_SLOW_CLK_SRC_RC_FAST_D256 2
32
#define ESP32_RTC_SLOW_CLK_32K_EXT_OSC 9
33
34
/* RTC slow clock frequencies */
35
#define ESP32_RTC_SLOW_CLK_SRC_RC_SLOW_FREQ 136000
36
#define ESP32_RTC_SLOW_CLK_SRC_XTAL32K_FREQ 32768
37
#define ESP32_RTC_SLOW_CLK_SRC_RC_FAST_D256_FREQ 68359
38
39
/* Modules IDs
40
* These IDs are actually offsets in CLK and RST Control registers.
41
* These IDs shouldn't be changed unless there is a Hardware change
42
* from Espressif.
43
*
44
* Basic Modules
45
* Registers: DPORT_PERIP_CLK_EN_REG, DPORT_PERIP_RST_EN_REG
46
*/
47
#define ESP32_LEDC_MODULE 0
48
#define ESP32_UART0_MODULE 1
49
#define ESP32_UART1_MODULE 2
50
#define ESP32_USB_MODULE 3
51
#define ESP32_I2C0_MODULE 4
52
#define ESP32_I2S1_MODULE 5
53
#define ESP32_TIMG0_MODULE 6
54
#define ESP32_TIMG1_MODULE 7
55
#define ESP32_UHCI0_MODULE 8
56
#define ESP32_RMT_MODULE 9
57
#define ESP32_SPI_MODULE 10
58
#define ESP32_SPI2_MODULE 11
59
#define ESP32_TWAI_MODULE 12
60
#define ESP32_RNG_MODULE 13
61
#define ESP32_WIFI_MODULE 14
62
#define ESP32_BT_MODULE 15
63
#define ESP32_WIFI_BT_COMMON_MODULE 16
64
#define ESP32_BT_BASEBAND_MODULE 17
65
#define ESP32_BT_LC_MODULE 18
66
#define ESP32_RSA_MODULE 19
67
#define ESP32_AES_MODULE 20
68
#define ESP32_SHA_MODULE 21
69
#define ESP32_HMAC_MODULE 22
70
#define ESP32_DS_MODULE 23
71
#define ESP32_GDMA_MODULE 24
72
#define ESP32_SYSTIMER_MODULE 25
73
#define ESP32_SARADC_MODULE 26
74
#define ESP32_MODULE_MAX 27
75
76
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_ESP32C3_H_ */
zephyr
dt-bindings
clock
esp32c3_clock.h
Generated on Sun Nov 24 2024 06:03:15 for Zephyr API Documentation by
1.12.0