Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
esp32s3_clock.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_ESP32S3_H_
8
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_ESP32S3_H_
9
10
/* System Clock Source */
11
#define ESP32_CLK_SRC_XTAL 0U
12
#define ESP32_CLK_SRC_PLL 1U
13
#define ESP32_CLK_SRC_RTC8M 2U
14
#define ESP32_CLK_SRC_APLL 3U
15
16
/* Supported CPU Frequencies */
17
#define ESP32_CLK_CPU_26M 26000000
18
#define ESP32_CLK_CPU_40M 40000000
19
#define ESP32_CLK_CPU_80M 80000000
20
#define ESP32_CLK_CPU_160M 160000000
21
#define ESP32_CLK_CPU_240M 240000000
22
23
/* Supported XTAL Frequencies */
24
#define ESP32_CLK_XTAL_32M 32
25
#define ESP32_CLK_XTAL_40M 40
26
27
/* Supported RTC fast clock frequencies */
28
#define ESP32_RTC_FAST_CLK_FREQ_8M 8500000U
29
30
/* Supported RTC slow clock frequencies */
31
#define ESP32_RTC_SLOW_CLK_FREQ_150K 150000U
32
#define ESP32_RTC_SLOW_CLK_FREQ_32K 32000U
33
#define ESP32_RTC_SLOW_CLK_FREQ_8MD256 (ESP32_RTC_FAST_CLK_FREQ_8M / 256)
34
35
/* Modules IDs
36
* These IDs are actually offsets in CLK and RST Control registers.
37
* These IDs shouldn't be changed unless there is a Hardware change
38
* from Espressif.
39
*
40
* Basic Modules
41
* Registers: DPORT_PERIP_CLK_EN_REG, DPORT_PERIP_RST_EN_REG
42
*/
43
#define ESP32_LEDC_MODULE 0
44
#define ESP32_UART0_MODULE 1
45
#define ESP32_UART1_MODULE 2
46
#define ESP32_UART2_MODULE 3
47
#define ESP32_USB_MODULE 4
48
#define ESP32_I2C0_MODULE 5
49
#define ESP32_I2C1_MODULE 6
50
#define ESP32_I2S0_MODULE 7
51
#define ESP32_I2S1_MODULE 8
52
#define ESP32_LCD_CAM_MODULE 9
53
#define ESP32_TIMG0_MODULE 10
54
#define ESP32_TIMG1_MODULE 11
55
#define ESP32_PWM0_MODULE 12
56
#define ESP32_PWM1_MODULE 13
57
#define ESP32_PWM2_MODULE 14
58
#define ESP32_PWM3_MODULE 15
59
#define ESP32_UHCI0_MODULE 16
60
#define ESP32_UHCI1_MODULE 17
61
#define ESP32_RMT_MODULE 18
62
#define ESP32_PCNT_MODULE 19
63
#define ESP32_SPI_MODULE 20
64
#define ESP32_SPI2_MODULE 21
65
#define ESP32_SPI3_MODULE 22
66
#define ESP32_SDMMC_MODULE 23
67
#define ESP32_TWAI_MODULE 24
68
#define ESP32_RNG_MODULE 25
69
#define ESP32_WIFI_MODULE 26
70
#define ESP32_BT_MODULE 27
71
#define ESP32_WIFI_BT_COMMON_MODULE 28
72
#define ESP32_BT_BASEBAND_MODULE 29
73
#define ESP32_BT_LC_MODULE 30
74
#define ESP32_AES_MODULE 31
75
#define ESP32_SHA_MODULE 32
76
#define ESP32_HMAC_MODULE 33
77
#define ESP32_DS_MODULE 34
78
#define ESP32_RSA_MODULE 35
79
#define ESP32_SYSTIMER_MODULE 36
80
#define ESP32_GDMA_MODULE 37
81
#define ESP32_DEDIC_GPIO_MODULE 38
82
#define ESP32_SARADC_MODULE 39
83
#define ESP32_MODULE_MAX 40
84
85
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_ESP32S3_H_ */
zephyr
dt-bindings
clock
esp32s3_clock.h
Generated on Thu Jul 4 2024 12:22:47 for Zephyr API Documentation by
1.9.6