8000 Housekeeping: Update SOC contants for ESP32 · pidou46/micropython-esp32-ulp@863af1c · GitHub
[go: up one dir, main page]

Skip to content
< 8000 script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/sessions-1e75b15ae60a.js">

Commit 863af1c

Browse files
committed
Housekeeping: Update SOC contants for ESP32
Updated as per ESP-IDF v5.0.2. Also added reference URL to those constants in the ESP-IDF.
1 parent 2aff8a1 commit 863af1c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

esp32_ulp/soc.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Address / Register definitions for the ESP32 SoC
33
"""
44

5+
# Reference:
6+
# https://github.com/espressif/esp-idf/blob/v5.0.2/components/soc/esp32/include/soc/reg_base.h
7+
58
DR_REG_DPORT_BASE = 0x3ff00000
69
DR_REG_AES_BASE = 0x3ff01000
710
DR_REG_RSA_BASE = 0x3ff02000
@@ -38,7 +41,7 @@
3841
DR_REG_SPI_ENCRYPT_BASE = 0x3ff5B000
3942
DR_REG_NRX_BASE = 0x3ff5CC00
4043
DR_REG_BB_BASE = 0x3ff5D000
41-
DR_REG_PWM_BASE = 0x3ff5E000
44+
DR_REG_PWM0_BASE = 0x3ff5E000
4245
DR_REG_TIMERGROUP0_BASE = 0x3ff5F000
4346
DR_REG_TIMERGROUP1_BASE = 0x3ff60000
4447
DR_REG_RTCMEM0_BASE = 0x3ff61000
@@ -47,13 +50,12 @@
4750
DR_REG_SPI2_BASE = 0x3ff64000
4851
DR_REG_SPI3_BASE = 0x3ff65000
4952
DR_REG_SYSCON_BASE = 0x3ff66000
50-
DR_REG_APB_CTRL_BASE = 0x3ff66000
53+
DR_REG_APB_CTRL_BASE = 0x3ff66000 # Old name for SYSCON, to be removed
5154
DR_REG_I2C1_EXT_BASE = 0x3ff67000
5255
DR_REG_SDMMC_BASE = 0x3ff68000
5356
DR_REG_EMAC_BASE = 0x3ff69000
57+
DR_REG_CAN_BASE = 0x3ff6B000
5458
DR_REG_PWM1_BASE = 0x3ff6C000
5559
DR_REG_I2S1_BASE = 0x3ff6D000
5660
DR_REG_UART2_BASE = 0x3ff6E000
57-
DR_REG_PWM2_BASE = 0x3ff6F000
58-
DR_REG_PWM3_BASE = 0x3ff70000
59-
61+
PERIPHS_SPI_ENCRYPT_BASEADDR = DR_REG_SPI_ENCRYPT_BASE

0 commit comments

Comments
 (0)
0