From: Konstantin Kondrashov Date: Mon, 13 May 2019 10:02:45 +0000 (+0800) Subject: all: Using xxx_periph.h X-Git-Tag: v4.0-beta1~281^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=399d2d260554538ef7f9c8fd37f22b754f65e17e;p=esp-idf all: Using xxx_periph.h Using xxx_periph.h in whole IDF instead of xxx_reg.h, xxx_struct.h, xxx_channel.h ... . Cleaned up header files from unnecessary headers (releated to soc/... headers). --- diff --git a/components/app_trace/app_trace.c b/components/app_trace/app_trace.c index e9b832f0c2..5a577a70dc 100644 --- a/components/app_trace/app_trace.c +++ b/components/app_trace/app_trace.c @@ -160,8 +160,7 @@ #include "soc/dport_reg.h" #include "eri.h" #include "trax.h" -#include "soc/timer_group_struct.h" -#include "soc/timer_group_reg.h" +#include "soc/timer_periph.h" #include "freertos/FreeRTOS.h" #include "esp_app_trace.h" diff --git a/components/app_trace/gcov/gcov_rtio.c b/components/app_trace/gcov/gcov_rtio.c index 7798890c1c..41306b2881 100644 --- a/components/app_trace/gcov/gcov_rtio.c +++ b/components/app_trace/gcov/gcov_rtio.c @@ -18,8 +18,7 @@ #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "soc/cpu.h" -#include "soc/timer_group_struct.h" -#include "soc/timer_group_reg.h" +#include "soc/timer_periph.h" #include "esp_app_trace.h" #include "esp_private/dbg_stubs.h" diff --git a/components/app_update/esp_ota_ops.c b/components/app_update/esp_ota_ops.c index edc70ca6f8..df6d8a9066 100644 --- a/components/app_update/esp_ota_ops.c +++ b/components/app_update/esp_ota_ops.c @@ -34,7 +34,6 @@ #include "esp_ota_ops.h" #include "sys/queue.h" #include "esp32/rom/crc.h" -#include "soc/dport_reg.h" #include "esp_log.h" #include "esp_flash_partitions.h" #include "bootloader_common.h" diff --git a/components/bootloader_support/include/esp_flash_encrypt.h b/components/bootloader_support/include/esp_flash_encrypt.h index 59eca33b24..fd8c9fed0b 100644 --- a/components/bootloader_support/include/esp_flash_encrypt.h +++ b/components/bootloader_support/include/esp_flash_encrypt.h @@ -20,7 +20,7 @@ #ifndef BOOTLOADER_BUILD #include "esp_spi_flash.h" #endif -#include "soc/efuse_reg.h" +#include "soc/efuse_periph.h" /** * @file esp_partition.h diff --git a/components/bootloader_support/include/esp_secure_boot.h b/components/bootloader_support/include/esp_secure_boot.h index 17b405e4fa..299c4959d2 100644 --- a/components/bootloader_support/include/esp_secure_boot.h +++ b/components/bootloader_support/include/esp_secure_boot.h @@ -15,7 +15,7 @@ #include #include -#include "soc/efuse_reg.h" +#include "soc/efuse_periph.h" #include "sdkconfig.h" diff --git a/components/bootloader_support/src/bootloader_clock.c b/components/bootloader_support/src/bootloader_clock.c index 2ab92d2af5..fda86b2073 100644 --- a/components/bootloader_support/src/bootloader_clock.c +++ b/components/bootloader_support/src/bootloader_clock.c @@ -16,8 +16,7 @@ #include "soc/soc.h" #include "soc/rtc.h" #include "soc/dport_reg.h" -#include "soc/efuse_reg.h" -#include "soc/rtc_cntl_reg.h" +#include "soc/efuse_periph.h" void bootloader_clock_configure() { diff --git a/components/bootloader_support/src/bootloader_common.c b/components/bootloader_support/src/bootloader_common.c index e584ea3df7..ed0169a960 100644 --- a/components/bootloader_support/src/bootloader_common.c +++ b/components/bootloader_support/src/bootloader_common.c @@ -17,16 +17,13 @@ #include "sdkconfig.h" #include "esp_err.h" #include "esp_log.h" -#include "esp32/rom/spi_flash.h" #include "esp32/rom/crc.h" -#include "esp32/rom/ets_sys.h" #include "esp32/rom/gpio.h" #include "esp_secure_boot.h" #include "esp_flash_partitions.h" #include "bootloader_flash.h" #include "bootloader_common.h" #include "soc/gpio_periph.h" -#include "soc/efuse_reg.h" #include "soc/rtc.h" #include "esp_image_format.h" #include "bootloader_sha.h" diff --git a/components/bootloader_support/src/bootloader_init.c b/components/bootloader_support/src/bootloader_init.c index 0733f6f7ef..cae9c57e54 100644 --- a/components/bootloader_support/src/bootloader_init.c +++ b/components/bootloader_support/src/bootloader_init.c @@ -33,12 +33,12 @@ #include "soc/cpu.h" #include "soc/rtc.h" #include "soc/dport_reg.h" -#include "soc/efuse_reg.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/timer_group_reg.h" #include "soc/gpio_periph.h" +#include "soc/efuse_periph.h" +#include "soc/rtc_periph.h" +#include "soc/timer_periph.h" #include "soc/rtc_wdt.h" -#include "soc/spi_reg.h" +#include "soc/spi_periph.h" #include "sdkconfig.h" #include "esp_image_format.h" diff --git a/components/bootloader_support/src/bootloader_random.c b/components/bootloader_support/src/bootloader_random.c index eb34d6add2..4ea86df52c 100644 --- a/components/bootloader_support/src/bootloader_random.c +++ b/components/bootloader_support/src/bootloader_random.c @@ -14,11 +14,11 @@ #include "bootloader_random.h" #include "soc/cpu.h" #include "soc/wdev_reg.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/sens_reg.h" -#include "soc/syscon_reg.h" +#include "soc/rtc_periph.h" +#include "soc/sens_periph.h" +#include "soc/syscon_periph.h" #include "soc/dport_reg.h" -#include "soc/i2s_reg.h" +#include "soc/i2s_periph.h" #include "esp_log.h" #ifndef BOOTLOADER_BUILD diff --git a/components/bootloader_support/src/bootloader_utility.c b/components/bootloader_support/src/bootloader_utility.c index d355531810..4500c723aa 100644 --- a/components/bootloader_support/src/bootloader_utility.c +++ b/components/bootloader_support/src/bootloader_utility.c @@ -33,12 +33,10 @@ #include "soc/cpu.h" #include "soc/rtc.h" #include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" -#include "soc/efuse_reg.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/timer_group_reg.h" -#include "soc/gpio_reg.h" -#include "soc/gpio_sig_map.h" +#include "soc/gpio_periph.h" +#include "soc/efuse_periph.h" +#include "soc/rtc_periph.h" +#include "soc/timer_periph.h" #include "sdkconfig.h" #include "esp_image_format.h" diff --git a/components/bootloader_support/src/esp32/bootloader_sha.c b/components/bootloader_support/src/esp32/bootloader_sha.c index 646a8d35a1..f42c8b6634 100644 --- a/components/bootloader_support/src/esp32/bootloader_sha.c +++ b/components/bootloader_support/src/esp32/bootloader_sha.c @@ -17,8 +17,7 @@ #include #include #include "esp32/rom/sha.h" -#include "soc/dport_reg.h" -#include "soc/hwcrypto_reg.h" +#include "soc/hwcrypto_periph.h" #include "esp32/rom/ets_sys.h" // TO REMOVE static uint32_t words_hashed; diff --git a/components/bootloader_support/src/esp32/secure_boot.c b/components/bootloader_support/src/esp32/secure_boot.c index 5de905e3b7..e0da118304 100644 --- a/components/bootloader_support/src/esp32/secure_boot.c +++ b/components/bootloader_support/src/esp32/secure_boot.c @@ -22,10 +22,8 @@ #include "esp32/rom/ets_sys.h" #include "esp32/rom/secure_boot.h" -#include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" -#include "soc/efuse_reg.h" -#include "soc/rtc_cntl_reg.h" +#include "soc/efuse_periph.h" +#include "soc/rtc_periph.h" #include "sdkconfig.h" diff --git a/components/bootloader_support/src/flash_qio_mode.c b/components/bootloader_support/src/flash_qio_mode.c index af8c714521..db486c73e3 100644 --- a/components/bootloader_support/src/flash_qio_mode.c +++ b/components/bootloader_support/src/flash_qio_mode.c @@ -18,9 +18,8 @@ #include "esp_err.h" #include "esp32/rom/spi_flash.h" #include "esp32/rom/efuse.h" -#include "soc/spi_struct.h" -#include "soc/spi_reg.h" -#include "soc/efuse_reg.h" +#include "soc/spi_periph.h" +#include "soc/efuse_periph.h" #include "sdkconfig.h" /* SPI flash controller */ diff --git a/components/bt/bt.c b/components/bt/bt.c index 96f968bc08..2c665f20ac 100644 --- a/components/bt/bt.c +++ b/components/bt/bt.c @@ -40,7 +40,6 @@ #include "esp_ipc.h" #include "driver/periph_ctrl.h" #include "soc/rtc.h" -#include "soc/rtc_cntl_reg.h" #include "soc/soc_memory_layout.h" #include "esp32/clk.h" #include "esp_coexist_internal.h" diff --git a/components/driver/can.c b/components/driver/can.c index 25b91ebaf8..6001e65f22 100644 --- a/components/driver/can.c +++ b/components/driver/can.c @@ -21,8 +21,7 @@ #include "esp_log.h" #include "esp_intr_alloc.h" #include "esp_pm.h" -#include "soc/dport_reg.h" -#include "soc/can_struct.h" +#include "soc/can_periph.h" #include "driver/gpio.h" #include "driver/periph_ctrl.h" #include "driver/can.h" diff --git a/components/driver/gpio.c b/components/driver/gpio.c index eda39c3f32..2cb6512c52 100644 --- a/components/driver/gpio.c +++ b/components/driver/gpio.c @@ -13,15 +13,13 @@ // limitations under the License. #include #include "esp_err.h" -#include "esp_intr_alloc.h" -#include "esp_intr_alloc.h" #include "freertos/FreeRTOS.h" #include "freertos/xtensa_api.h" #include "driver/gpio.h" #include "driver/rtc_io.h" #include "soc/soc.h" -#include "esp_log.h" #include "soc/gpio_periph.h" +#include "esp_log.h" static const char* GPIO_TAG = "gpio"; #define GPIO_CHECK(a, str, ret_val) \ diff --git a/components/driver/i2c.c b/components/driver/i2c.c index 2b3a48e63c..c2f9e5ba77 100644 --- a/components/driver/i2c.c +++ b/components/driver/i2c.c @@ -23,9 +23,7 @@ #include "freertos/xtensa_api.h" #include "freertos/task.h" #include "freertos/ringbuf.h" -#include "soc/dport_reg.h" -#include "soc/i2c_struct.h" -#include "soc/i2c_reg.h" +#include "soc/i2c_periph.h" #include "driver/i2c.h" #include "driver/gpio.h" #include "driver/periph_ctrl.h" diff --git a/components/driver/i2s.c b/components/driver/i2s.c index 5f83c21a55..02322b341a 100644 --- a/components/driver/i2s.c +++ b/components/driver/i2s.c @@ -19,12 +19,9 @@ #include "freertos/queue.h" #include "freertos/xtensa_api.h" -#include "soc/dport_reg.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/rtc_io_reg.h" -#include "soc/sens_reg.h" +#include "soc/rtc_periph.h" #include "soc/rtc.h" -#include "soc/efuse_reg.h" +#include "soc/efuse_periph.h" #include "esp32/rom/lldesc.h" #include "driver/gpio.h" diff --git a/components/driver/include/driver/adc.h b/components/driver/include/driver/adc.h index b5a9a9848e..91eb18fd2f 100644 --- a/components/driver/include/driver/adc.h +++ b/components/driver/include/driver/adc.h @@ -23,7 +23,7 @@ extern "C" { #include #include "esp_err.h" #include "driver/gpio.h" -#include "soc/adc_channel.h" +#include "soc/adc_periph.h" typedef enum { ADC_ATTEN_DB_0 = 0, /*! #include "esp_err.h" -#include "soc/dac_channel.h" +#include "soc/dac_periph.h" typedef enum { DAC_CHANNEL_1 = 1, /*!< DAC channel 1 is GPIO25 */ diff --git a/components/driver/include/driver/i2s.h b/components/driver/include/driver/i2s.h index 2160bcfcdd..59c11978e5 100644 --- a/components/driver/include/driver/i2s.h +++ b/components/driver/include/driver/i2s.h @@ -16,12 +16,10 @@ #define _DRIVER_I2S_H_ #include "esp_err.h" #include -#include "soc/gpio_reg.h" #include "soc/soc.h" -#include "soc/i2s_struct.h" -#include "soc/i2s_reg.h" -#include "soc/rtc_io_reg.h" -#include "soc/io_mux_reg.h" +#include "soc/gpio_periph.h" +#include "soc/i2s_periph.h" +#include "soc/rtc_periph.h" #include "esp32/rom/gpio.h" #include "esp_attr.h" #include "esp_intr_alloc.h" diff --git a/components/driver/include/driver/mcpwm.h b/components/driver/include/driver/mcpwm.h index 6e4edac458..03483cc4ad 100644 --- a/components/driver/include/driver/mcpwm.h +++ b/components/driver/include/driver/mcpwm.h @@ -20,7 +20,6 @@ #include "driver/gpio.h" #include "driver/periph_ctrl.h" #include "esp_intr_alloc.h" -#include "esp_intr_alloc.h" #ifdef __cplusplus extern "C" { diff --git a/components/driver/include/driver/pcnt.h b/components/driver/include/driver/pcnt.h index ce32050e56..76202cf902 100644 --- a/components/driver/include/driver/pcnt.h +++ b/components/driver/include/driver/pcnt.h @@ -8,11 +8,8 @@ #include "freertos/semphr.h" #include "freertos/xtensa_api.h" #include "soc/soc.h" -#include "soc/pcnt_reg.h" -#include "soc/pcnt_struct.h" -#include "soc/gpio_sig_map.h" +#include "soc/pcnt_periph.h" #include "driver/gpio.h" -#include "esp_intr_alloc.h" #ifdef __cplusplus extern "C" { diff --git a/components/driver/include/driver/periph_ctrl.h b/components/driver/include/driver/periph_ctrl.h index 9689a8cb21..a659e793ff 100644 --- a/components/driver/include/driver/periph_ctrl.h +++ b/components/driver/include/driver/periph_ctrl.h @@ -15,9 +15,6 @@ #ifndef _DRIVER_PERIPH_CTRL_H_ #define _DRIVER_PERIPH_CTRL_H_ -#include "esp_err.h" -#include "soc/soc.h" -#include "soc/dport_reg.h" #include "soc/periph_defs.h" #ifdef __cplusplus diff --git a/components/driver/include/driver/rmt.h b/components/driver/include/driver/rmt.h index 87916b3756..f177c82b3b 100644 --- a/components/driver/include/driver/rmt.h +++ b/components/driver/include/driver/rmt.h @@ -15,9 +15,7 @@ #ifndef _DRIVER_RMT_CTRL_H_ #define _DRIVER_RMT_CTRL_H_ #include "esp_err.h" -#include "soc/rmt_reg.h" -#include "soc/dport_reg.h" -#include "soc/rmt_struct.h" +#include "soc/rmt_periph.h" #include "freertos/FreeRTOS.h" #include "freertos/semphr.h" #include "freertos/xtensa_api.h" diff --git a/components/driver/include/driver/rtc_io.h b/components/driver/include/driver/rtc_io.h index 4e84ea1da2..c636f61cc1 100644 --- a/components/driver/include/driver/rtc_io.h +++ b/components/driver/include/driver/rtc_io.h @@ -18,7 +18,6 @@ #include #include "esp_err.h" #include "driver/gpio.h" -#include "soc/rtc_gpio_channel.h" #include "soc/rtc_periph.h" #ifdef __cplusplus extern "C" { diff --git a/components/driver/include/driver/sigmadelta.h b/components/driver/include/driver/sigmadelta.h index 76237c193d..93388f0dea 100644 --- a/components/driver/include/driver/sigmadelta.h +++ b/components/driver/include/driver/sigmadelta.h @@ -15,8 +15,7 @@ #ifndef __DRIVER_SIGMADELTA_H__ #define __DRIVER_SIGMADELTA_H__ #include -#include "soc/gpio_sd_struct.h" -#include "soc/gpio_sd_reg.h" +#include "soc/sigmadelta_periph.h" #include "driver/gpio.h" #ifdef _cplusplus diff --git a/components/driver/include/driver/timer.h b/components/driver/include/driver/timer.h index 48e2b98908..cbf2a5bd23 100644 --- a/components/driver/include/driver/timer.h +++ b/components/driver/include/driver/timer.h @@ -17,8 +17,7 @@ #include "esp_err.h" #include "esp_attr.h" #include "soc/soc.h" -#include "soc/timer_group_reg.h" -#include "soc/timer_group_struct.h" +#include "soc/timer_periph.h" #include "esp_intr_alloc.h" #ifdef __cplusplus diff --git a/components/driver/include/driver/touch_pad.h b/components/driver/include/driver/touch_pad.h index 8d8c72040a..0c3884ded9 100644 --- a/components/driver/include/driver/touch_pad.h +++ b/components/driver/include/driver/touch_pad.h @@ -17,10 +17,9 @@ #ifdef __cplusplus extern "C" { #endif -#include "esp_intr_alloc.h" #include "esp_err.h" #include "esp_intr_alloc.h" -#include "soc/touch_channel.h" +#include "soc/touch_periph.h" typedef enum { TOUCH_PAD_NUM0 = 0, /*!< Touch pad channel 0 is GPIO4 */ diff --git a/components/driver/include/driver/uart.h b/components/driver/include/driver/uart.h index e716e54245..4f0c8c1ca1 100644 --- a/components/driver/include/driver/uart.h +++ b/components/driver/include/driver/uart.h @@ -20,8 +20,7 @@ extern "C" { #endif -#include "soc/uart_reg.h" -#include "soc/uart_struct.h" +#include "soc/uart_periph.h" #include "esp_err.h" #include "esp_intr_alloc.h" #include "driver/periph_ctrl.h" @@ -32,7 +31,6 @@ extern "C" { #include "freertos/queue.h" #include "freertos/ringbuf.h" #include -#include "soc/uart_channel.h" #define UART_FIFO_LEN (128) /*!< Length of the hardware FIFO buffers */ #define UART_INTR_MASK 0x1ff /*!< Mask of all UART interrupts */ diff --git a/components/driver/ledc.c b/components/driver/ledc.c index 996e1dbbd4..92a055cbc0 100644 --- a/components/driver/ledc.c +++ b/components/driver/ledc.c @@ -13,15 +13,12 @@ // limitations under the License. #include #include -#include "esp_intr_alloc.h" -#include "esp_intr_alloc.h" #include "freertos/FreeRTOS.h" #include "freertos/semphr.h" #include "freertos/xtensa_api.h" -#include "soc/gpio_sig_map.h" +#include "soc/gpio_periph.h" #include "driver/ledc.h" -#include "soc/ledc_reg.h" -#include "soc/ledc_struct.h" +#include "soc/ledc_periph.h" #include "esp_log.h" static const char* LEDC_TAG = "ledc"; diff --git a/components/driver/mcpwm.c b/components/driver/mcpwm.c index 761176ecfb..714855ea5a 100644 --- a/components/driver/mcpwm.c +++ b/components/driver/mcpwm.c @@ -15,16 +15,12 @@ #include #include "esp_log.h" #include "esp_err.h" -#include "esp_intr_alloc.h" -#include "esp_intr_alloc.h" #include "freertos/FreeRTOS.h" #include "freertos/semphr.h" #include "freertos/xtensa_api.h" #include "freertos/task.h" -#include "soc/mcpwm_reg.h" -#include "soc/mcpwm_struct.h" -#include "soc/io_mux_reg.h" -#include "soc/gpio_sig_map.h" +#include "soc/mcpwm_periph.h" +#include "soc/gpio_periph.h" #include "driver/mcpwm.h" #include "driver/periph_ctrl.h" diff --git a/components/driver/pcnt.c b/components/driver/pcnt.c index b91cb5965b..249a7f8288 100644 --- a/components/driver/pcnt.c +++ b/components/driver/pcnt.c @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. #include "esp_log.h" -#include "esp_intr_alloc.h" #include "driver/pcnt.h" #include "driver/periph_ctrl.h" diff --git a/components/driver/periph_ctrl.c b/components/driver/periph_ctrl.c index 522c8d587f..65ece09e18 100644 --- a/components/driver/periph_ctrl.c +++ b/components/driver/periph_ctrl.c @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. #include -#include "esp_intr_alloc.h" #include "freertos/FreeRTOS.h" #include "freertos/semphr.h" #include "freertos/xtensa_api.h" diff --git a/components/driver/rmt.c b/components/driver/rmt.c index af345a4942..10605d2e24 100644 --- a/components/driver/rmt.c +++ b/components/driver/rmt.c @@ -21,9 +21,7 @@ #include "esp_intr_alloc.h" #include "esp_log.h" #include "esp_err.h" -#include "esp_intr_alloc.h" -#include "soc/gpio_sig_map.h" -#include "soc/rmt_struct.h" +#include "soc/gpio_periph.h" #include "driver/periph_ctrl.h" #include "driver/rmt.h" #include "soc/soc_memory_layout.h" diff --git a/components/driver/rtc_module.c b/components/driver/rtc_module.c index 296c183c77..eae2871993 100644 --- a/components/driver/rtc_module.c +++ b/components/driver/rtc_module.c @@ -17,14 +17,9 @@ #include #include "esp32/rom/ets_sys.h" #include "esp_log.h" -#include "soc/rtc_io_reg.h" -#include "soc/rtc_io_struct.h" -#include "soc/sens_reg.h" -#include "soc/sens_struct.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/rtc_cntl_struct.h" -#include "soc/syscon_reg.h" -#include "soc/syscon_struct.h" +#include "soc/rtc_periph.h" +#include "soc/sens_periph.h" +#include "soc/syscon_periph.h" #include "soc/rtc.h" #include "rtc_io.h" #include "touch_pad.h" diff --git a/components/driver/sdio_slave.c b/components/driver/sdio_slave.c index 1e5814a17e..1bd805c8e4 100644 --- a/components/driver/sdio_slave.c +++ b/components/driver/sdio_slave.c @@ -91,10 +91,8 @@ The driver of FIFOs works as below: #include "esp_log.h" #include "esp_intr_alloc.h" #include "freertos/FreeRTOS.h" -#include "soc/dport_access.h" -#include "soc/dport_reg.h" #include "soc/soc_memory_layout.h" -#include "soc/io_mux_reg.h" +#include "soc/gpio_periph.h" #include "freertos/semphr.h" #include "xtensa/core-macros.h" #include "driver/periph_ctrl.h" diff --git a/components/driver/sdmmc_host.c b/components/driver/sdmmc_host.c index ff3431fd83..7a8969fd21 100644 --- a/components/driver/sdmmc_host.c +++ b/components/driver/sdmmc_host.c @@ -17,7 +17,7 @@ #include #include "esp_log.h" #include "esp_intr_alloc.h" -#include "soc/io_mux_reg.h" +#include "soc/gpio_periph.h" #include "esp32/rom/gpio.h" #include "driver/gpio.h" #include "driver/sdmmc_host.h" diff --git a/components/driver/sdspi_transaction.c b/components/driver/sdspi_transaction.c index 3e74a68b81..f8dec0a2ee 100644 --- a/components/driver/sdspi_transaction.c +++ b/components/driver/sdspi_transaction.c @@ -16,8 +16,6 @@ #include "esp_err.h" #include "esp_log.h" #include "sys/lock.h" -#include "soc/sdmmc_reg.h" -#include "soc/sdmmc_periph.h" #include "driver/sdmmc_types.h" #include "driver/sdmmc_defs.h" #include "driver/sdmmc_host.h" diff --git a/components/driver/sigmadelta.c b/components/driver/sigmadelta.c index d68071bf74..bc29813150 100644 --- a/components/driver/sigmadelta.c +++ b/components/driver/sigmadelta.c @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. #include "esp_log.h" -#include "soc/soc.h" -#include "driver/periph_ctrl.h" #include "driver/sigmadelta.h" static const char* SIGMADELTA_TAG = "SIGMADELTA"; diff --git a/components/driver/spi_common.c b/components/driver/spi_common.c index de786a61ba..6677ef6562 100644 --- a/components/driver/spi_common.c +++ b/components/driver/spi_common.c @@ -15,13 +15,10 @@ #include #include "driver/spi_master.h" -#include "soc/dport_reg.h" #include "soc/spi_periph.h" #include "esp32/rom/ets_sys.h" #include "esp_types.h" #include "esp_attr.h" -#include "esp_intr_alloc.h" -#include "esp_intr_alloc.h" #include "esp_log.h" #include "esp_err.h" #include "soc/soc.h" diff --git a/components/driver/spi_master.c b/components/driver/spi_master.c index 94d875f90e..90382fd01a 100644 --- a/components/driver/spi_master.c +++ b/components/driver/spi_master.c @@ -121,13 +121,11 @@ We have two bits to control the interrupt: #include #include "driver/spi_common.h" #include "driver/spi_master.h" -#include "soc/dport_reg.h" #include "soc/spi_periph.h" #include "esp32/rom/ets_sys.h" #include "esp_types.h" #include "esp_attr.h" #include "esp_intr_alloc.h" -#include "esp_intr_alloc.h" #include "esp_log.h" #include "esp_err.h" #include "esp_pm.h" @@ -135,12 +133,9 @@ We have two bits to control the interrupt: #include "freertos/semphr.h" #include "freertos/xtensa_api.h" #include "freertos/task.h" -#include "soc/soc.h" #include "soc/soc_memory_layout.h" -#include "soc/dport_reg.h" #include "esp32/rom/lldesc.h" #include "driver/gpio.h" -#include "driver/periph_ctrl.h" #include "esp_heap_caps.h" #include "stdatomic.h" #include "sdkconfig.h" diff --git a/components/driver/spi_slave.c b/components/driver/spi_slave.c index b4a15c158e..f9f792a280 100644 --- a/components/driver/spi_slave.c +++ b/components/driver/spi_slave.c @@ -18,13 +18,11 @@ #include #include "driver/spi_common.h" #include "driver/spi_slave.h" -#include "soc/dport_reg.h" #include "soc/spi_periph.h" #include "esp32/rom/ets_sys.h" #include "esp_types.h" #include "esp_attr.h" #include "esp_intr_alloc.h" -#include "esp_intr_alloc.h" #include "esp_log.h" #include "esp_err.h" #include "esp_pm.h" @@ -32,12 +30,9 @@ #include "freertos/semphr.h" #include "freertos/xtensa_api.h" #include "freertos/task.h" -#include "soc/soc.h" #include "soc/soc_memory_layout.h" -#include "soc/dport_reg.h" #include "esp32/rom/lldesc.h" #include "driver/gpio.h" -#include "driver/periph_ctrl.h" #include "esp_heap_caps.h" static const char *SPI_TAG = "spi_slave"; diff --git a/components/driver/test/test_i2c.c b/components/driver/test/test_i2c.c index 48aea2a4b7..e445c8b340 100644 --- a/components/driver/test/test_i2c.c +++ b/components/driver/test/test_i2c.c @@ -11,9 +11,8 @@ #include "driver/i2c.h" #include "esp_attr.h" #include "esp_log.h" -#include "soc/gpio_sig_map.h" -#include "soc/i2c_struct.h" -#include "soc/i2c_reg.h" +#include "soc/gpio_periph.h" +#include "soc/i2c_periph.h" #include "esp_system.h" #include "driver/pcnt.h" diff --git a/components/driver/test/test_ledc.c b/components/driver/test/test_ledc.c index 93632d8e57..d0e35851d8 100644 --- a/components/driver/test/test_ledc.c +++ b/components/driver/test/test_ledc.c @@ -20,8 +20,7 @@ #include "freertos/queue.h" #include "freertos/xtensa_api.h" #include "unity.h" -#include "soc/ledc_reg.h" -#include "soc/ledc_struct.h" +#include "soc/ledc_periph.h" #include "esp_system.h" #include "driver/pcnt.h" #include "driver/ledc.h" diff --git a/components/driver/test/test_pcnt.c b/components/driver/test/test_pcnt.c index 35917363ea..ae5656a846 100644 --- a/components/driver/test/test_pcnt.c +++ b/components/driver/test/test_pcnt.c @@ -20,7 +20,7 @@ #include "driver/ledc.h" #include "esp_attr.h" #include "esp_log.h" -#include "soc/gpio_sig_map.h" +#include "soc/gpio_periph.h" #include "unity.h" #include "esp32/rom/ets_sys.h" diff --git a/components/driver/test/test_pwm.c b/components/driver/test/test_pwm.c index d645848805..b787f8e3ab 100644 --- a/components/driver/test/test_pwm.c +++ b/components/driver/test/test_pwm.c @@ -20,8 +20,7 @@ #include "test_utils.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" -#include "soc/mcpwm_reg.h" -#include "soc/mcpwm_struct.h" +#include "soc/mcpwm_periph.h" #include "freertos/queue.h" #include "esp_attr.h" #include "esp_log.h" diff --git a/components/driver/test/test_rmt.c b/components/driver/test/test_rmt.c index 57c2247afc..7b186b2c5b 100644 --- a/components/driver/test/test_rmt.c +++ b/components/driver/test/test_rmt.c @@ -13,7 +13,7 @@ #include "esp_err.h" #include "esp_log.h" #include "driver/periph_ctrl.h" -#include "soc/rmt_reg.h" +#include "soc/rmt_periph.h" static const char* TAG = "RMT"; diff --git a/components/driver/test/test_spi_master.c b/components/driver/test/test_spi_master.c index 82b9fcc9e5..22b1961cc0 100644 --- a/components/driver/test/test_spi_master.c +++ b/components/driver/test/test_spi_master.c @@ -16,7 +16,6 @@ #include "unity.h" #include "driver/spi_master.h" #include "driver/spi_slave.h" -#include "soc/dport_reg.h" #include "esp_heap_caps.h" #include "esp_log.h" #include "soc/spi_periph.h" diff --git a/components/driver/test/test_spi_sio.c b/components/driver/test/test_spi_sio.c index df9cff1105..37d4065df1 100644 --- a/components/driver/test/test_spi_sio.c +++ b/components/driver/test/test_spi_sio.c @@ -16,7 +16,6 @@ #include "unity.h" #include "driver/spi_master.h" #include "driver/spi_slave.h" -#include "soc/dport_reg.h" #include "esp_heap_caps.h" #include "esp_log.h" #include "soc/spi_periph.h" diff --git a/components/driver/timer.c b/components/driver/timer.c index 8b1532fbd0..6a82d87fa9 100644 --- a/components/driver/timer.c +++ b/components/driver/timer.c @@ -15,7 +15,6 @@ #include "esp_log.h" #include "esp_err.h" #include "esp_intr_alloc.h" -#include "esp_intr_alloc.h" #include "freertos/FreeRTOS.h" #include "freertos/xtensa_api.h" #include "driver/timer.h" diff --git a/components/driver/uart.c b/components/driver/uart.c index 411279e223..fffd727e72 100644 --- a/components/driver/uart.c +++ b/components/driver/uart.c @@ -15,7 +15,6 @@ #include "esp_types.h" #include "esp_attr.h" #include "esp_intr_alloc.h" -#include "esp_intr_alloc.h" #include "esp_log.h" #include "esp_err.h" #include "esp32/clk.h" @@ -25,8 +24,7 @@ #include "freertos/xtensa_api.h" #include "freertos/task.h" #include "freertos/ringbuf.h" -#include "soc/dport_reg.h" -#include "soc/uart_struct.h" +#include "soc/uart_periph.h" #include "driver/uart.h" #include "driver/gpio.h" #include "driver/uart_select.h" diff --git a/components/efuse/src/esp_efuse_api.c b/components/efuse/src/esp_efuse_api.c index d697a0d4c0..57a71970a3 100644 --- a/components/efuse/src/esp_efuse_api.c +++ b/components/efuse/src/esp_efuse_api.c @@ -14,7 +14,7 @@ #include "esp_efuse.h" #include "esp_efuse_utility.h" -#include "soc/efuse_reg.h" +#include "soc/efuse_periph.h" #include "assert.h" #include "sdkconfig.h" #include "esp_efuse_table.h" diff --git a/components/efuse/src/esp_efuse_fields.c b/components/efuse/src/esp_efuse_fields.c index f9cb977998..a456d7a944 100644 --- a/components/efuse/src/esp_efuse_fields.c +++ b/components/efuse/src/esp_efuse_fields.c @@ -21,7 +21,7 @@ #include "assert.h" #include "esp_err.h" #include "esp_log.h" -#include "soc/efuse_reg.h" +#include "soc/efuse_periph.h" #include "bootloader_random.h" const static char *TAG = "efuse"; diff --git a/components/efuse/src/esp_efuse_utility.c b/components/efuse/src/esp_efuse_utility.c index a9401f163a..03ea260840 100644 --- a/components/efuse/src/esp_efuse_utility.c +++ b/components/efuse/src/esp_efuse_utility.c @@ -14,7 +14,7 @@ #include "esp_efuse_utility.h" -#include "soc/efuse_reg.h" +#include "soc/efuse_periph.h" #include "esp_log.h" #include "assert.h" #include "sdkconfig.h" diff --git a/components/efuse/test/test_efuse_coding_scheme.c b/components/efuse/test/test_efuse_coding_scheme.c index 242702d9fd..cccacb5d6e 100644 --- a/components/efuse/test/test_efuse_coding_scheme.c +++ b/components/efuse/test/test_efuse_coding_scheme.c @@ -2,7 +2,7 @@ #include #include "esp_efuse.h" #include "../src/esp_efuse_utility.h" -#include "soc/efuse_reg.h" +#include "soc/efuse_periph.h" #include "unity.h" #include "bootloader_random.h" diff --git a/components/esp32/brownout.c b/components/esp32/brownout.c index 1e81768ef3..35589330fb 100644 --- a/components/esp32/brownout.c +++ b/components/esp32/brownout.c @@ -19,7 +19,7 @@ #include "sdkconfig.h" #include "soc/soc.h" #include "soc/cpu.h" -#include "soc/rtc_cntl_reg.h" +#include "soc/rtc_periph.h" #include "esp32/rom/ets_sys.h" #include "esp_private/system_internal.h" #include "driver/rtc_cntl.h" diff --git a/components/esp32/cache_err_int.c b/components/esp32/cache_err_int.c index fd17edf65d..079812023e 100644 --- a/components/esp32/cache_err_int.c +++ b/components/esp32/cache_err_int.c @@ -29,7 +29,6 @@ #include "esp_attr.h" #include "soc/dport_reg.h" #include "sdkconfig.h" -#include "esp32/dport_access.h" void esp_cache_err_int_init() { diff --git a/components/esp32/clk.c b/components/esp32/clk.c index 02a8caa175..6aa2bffa70 100644 --- a/components/esp32/clk.c +++ b/components/esp32/clk.c @@ -25,10 +25,11 @@ #include "esp32/rom/uart.h" #include "esp32/rom/rtc.h" #include "soc/soc.h" +#include "soc/dport_reg.h" #include "soc/rtc.h" #include "soc/rtc_wdt.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/i2s_reg.h" +#include "soc/rtc_periph.h" +#include "soc/i2s_periph.h" #include "driver/periph_ctrl.h" #include "xtensa/core-macros.h" #include "bootloader_clock.h" diff --git a/components/esp32/cpu_start.c b/components/esp32/cpu_start.c index f4bac3bb2b..e8e1100993 100644 --- a/components/esp32/cpu_start.c +++ b/components/esp32/cpu_start.c @@ -26,11 +26,10 @@ #include "soc/cpu.h" #include "soc/rtc.h" #include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/timer_group_reg.h" +#include "soc/gpio_periph.h" +#include "soc/timer_periph.h" #include "soc/rtc_wdt.h" -#include "soc/efuse_reg.h" +#include "soc/efuse_periph.h" #include "driver/rtc_io.h" @@ -48,7 +47,6 @@ #include "esp_event.h" #include "esp_spi_flash.h" #include "esp_ipc.h" -#include "esp32/dport_access.h" #include "esp_private/crosscore_int.h" #include "esp_log.h" #include "esp_vfs_dev.h" diff --git a/components/esp32/crosscore_int.c b/components/esp32/crosscore_int.c index 986deb2845..746060e446 100644 --- a/components/esp32/crosscore_int.c +++ b/components/esp32/crosscore_int.c @@ -17,15 +17,14 @@ #include "esp_attr.h" #include "esp_err.h" #include "esp_intr_alloc.h" -#include "esp_intr_alloc.h" #include "esp32/rom/ets_sys.h" #include "esp32/rom/uart.h" #include "soc/cpu.h" #include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" -#include "soc/rtc_cntl_reg.h" +#include "soc/gpio_periph.h" +#include "soc/rtc_periph.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" diff --git a/components/esp32/dport_access.c b/components/esp32/dport_access.c index 1f1a4dda18..de828eb061 100644 --- a/components/esp32/dport_access.c +++ b/components/esp32/dport_access.c @@ -31,7 +31,7 @@ #include "soc/cpu.h" #include "soc/dport_reg.h" -#include "soc/spi_reg.h" +#include "soc/spi_periph.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" diff --git a/components/esp32/gdbstub.c b/components/esp32/gdbstub.c index 5c33045f11..08623dce4c 100644 --- a/components/esp32/gdbstub.c +++ b/components/esp32/gdbstub.c @@ -20,8 +20,8 @@ #include #include "esp32/rom/ets_sys.h" -#include "soc/uart_reg.h" -#include "soc/io_mux_reg.h" +#include "soc/uart_periph.h" +#include "soc/gpio_periph.h" #include "esp_private/gdbstub.h" #include "esp_debug_helpers.h" #include "driver/gpio.h" diff --git a/components/esp32/int_wdt.c b/components/esp32/int_wdt.c index b384dcebac..f42b987739 100644 --- a/components/esp32/int_wdt.c +++ b/components/esp32/int_wdt.c @@ -26,8 +26,7 @@ #include "esp_intr_alloc.h" #include "esp_attr.h" #include "esp_freertos_hooks.h" -#include "soc/timer_group_struct.h" -#include "soc/timer_group_reg.h" +#include "soc/timer_periph.h" #include "driver/timer.h" #include "driver/periph_ctrl.h" #include "esp_int_wdt.h" diff --git a/components/esp32/intr_alloc.c b/components/esp32/intr_alloc.c index 856cebb55f..b74c4f9293 100644 --- a/components/esp32/intr_alloc.c +++ b/components/esp32/intr_alloc.c @@ -28,7 +28,6 @@ #include "esp_log.h" #include "esp_intr_alloc.h" #include "esp_attr.h" -#include "esp_intr_alloc.h" #include "esp_ipc.h" #include #include diff --git a/components/esp32/panic.c b/components/esp32/panic.c index f27d457209..b66ba9437a 100644 --- a/components/esp32/panic.c +++ b/components/esp32/panic.c @@ -22,12 +22,11 @@ #include "freertos/task.h" #include "freertos/xtensa_api.h" -#include "soc/uart_reg.h" -#include "soc/io_mux_reg.h" +#include "soc/uart_periph.h" +#include "soc/gpio_periph.h" #include "soc/dport_reg.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/timer_group_struct.h" -#include "soc/timer_group_reg.h" +#include "soc/rtc_periph.h" +#include "soc/timer_periph.h" #include "soc/cpu.h" #include "soc/rtc.h" #include "soc/rtc_wdt.h" diff --git a/components/esp32/pm_trace.c b/components/esp32/pm_trace.c index b4cebf85fe..02a636211b 100644 --- a/components/esp32/pm_trace.c +++ b/components/esp32/pm_trace.c @@ -15,7 +15,6 @@ #include "esp_private/pm_trace.h" #include "driver/gpio.h" -#include "soc/gpio_reg.h" /* GPIOs to use for tracing of esp_pm events. * Two entries in the array for each type, one for each CPU. diff --git a/components/esp32/reset_reason.c b/components/esp32/reset_reason.c index f9cc0062f7..0b291b12cc 100644 --- a/components/esp32/reset_reason.c +++ b/components/esp32/reset_reason.c @@ -15,7 +15,7 @@ #include "esp_system.h" #include "esp32/rom/rtc.h" #include "esp_private/system_internal.h" -#include "soc/rtc_cntl_reg.h" +#include "soc/rtc_periph.h" static void esp_reset_reason_clear_hint(); diff --git a/components/esp32/sleep_modes.c b/components/esp32/sleep_modes.c index 25d5c8594b..04179d3791 100644 --- a/components/esp32/sleep_modes.c +++ b/components/esp32/sleep_modes.c @@ -27,10 +27,7 @@ #include "esp32/rom/uart.h" #include "soc/cpu.h" #include "soc/rtc.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/rtc_io_reg.h" -#include "soc/spi_reg.h" -#include "soc/sens_reg.h" +#include "soc/spi_periph.h" #include "soc/dport_reg.h" #include "soc/rtc_wdt.h" #include "soc/soc_memory_layout.h" diff --git a/components/esp32/spiram_psram.c b/components/esp32/spiram_psram.c index f7d88c8592..56fa95632e 100644 --- a/components/esp32/spiram_psram.c +++ b/components/esp32/spiram_psram.c @@ -29,10 +29,8 @@ #include "esp32/rom/gpio.h" #include "esp32/rom/cache.h" #include "esp32/rom/efuse.h" -#include "soc/io_mux_reg.h" #include "soc/dport_reg.h" -#include "soc/gpio_sig_map.h" -#include "soc/efuse_reg.h" +#include "soc/efuse_periph.h" #include "driver/gpio.h" #include "driver/spi_common.h" #include "driver/periph_ctrl.h" diff --git a/components/esp32/spiram_psram.h b/components/esp32/spiram_psram.h index 34c6e9f380..5a5f147bf5 100644 --- a/components/esp32/spiram_psram.h +++ b/components/esp32/spiram_psram.h @@ -15,7 +15,7 @@ #ifndef _PSRAM_H #define _PSRAM_H -#include "soc/spi_reg.h" +#include "soc/spi_periph.h" #include "esp_err.h" #include "sdkconfig.h" diff --git a/components/esp32/system_api.c b/components/esp32/system_api.c index ce52e96fe2..bd81a82db7 100644 --- a/components/esp32/system_api.c +++ b/components/esp32/system_api.c @@ -24,11 +24,10 @@ #include "esp32/rom/cache.h" #include "esp32/rom/uart.h" #include "soc/dport_reg.h" -#include "soc/gpio_reg.h" -#include "soc/efuse_reg.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/timer_group_reg.h" -#include "soc/timer_group_struct.h" +#include "soc/gpio_periph.h" +#include "soc/efuse_periph.h" +#include "soc/rtc_periph.h" +#include "soc/timer_periph.h" #include "soc/cpu.h" #include "soc/rtc.h" #include "soc/rtc_wdt.h" diff --git a/components/esp32/task_wdt.c b/components/esp32/task_wdt.c index d7edf732aa..86610be94a 100644 --- a/components/esp32/task_wdt.c +++ b/components/esp32/task_wdt.c @@ -26,11 +26,9 @@ #include #include "esp_err.h" #include "esp_intr_alloc.h" -#include "esp_intr_alloc.h" #include "esp_attr.h" #include "esp_freertos_hooks.h" -#include "soc/timer_group_struct.h" -#include "soc/timer_group_reg.h" +#include "soc/timer_periph.h" #include "esp_log.h" #include "driver/timer.h" #include "driver/periph_ctrl.h" diff --git a/components/esp32/test/test_aes_sha_rsa.c b/components/esp32/test/test_aes_sha_rsa.c index 93210b8779..8453b68f57 100644 --- a/components/esp32/test/test_aes_sha_rsa.c +++ b/components/esp32/test/test_aes_sha_rsa.c @@ -13,7 +13,7 @@ #include "test_utils.h" #include "esp32/rom/uart.h" #include "esp32/rom/sha.h" -#include "soc/uart_reg.h" +#include "soc/uart_periph.h" #include "soc/dport_reg.h" #include "soc/rtc.h" #include "esp_log.h" diff --git a/components/esp32/test/test_ahb_arb.c b/components/esp32/test/test_ahb_arb.c index c6bf622fba..185bbb3ddb 100644 --- a/components/esp32/test/test_ahb_arb.c +++ b/components/esp32/test/test_ahb_arb.c @@ -14,12 +14,10 @@ #include "unity.h" -#include "soc/uart_reg.h" +#include "soc/uart_periph.h" #include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" -#include "soc/gpio_sig_map.h" -#include "soc/gpio_reg.h" -#include "soc/i2s_reg.h" +#include "soc/gpio_periph.h" +#include "soc/i2s_periph.h" diff --git a/components/esp32/test/test_dport.c b/components/esp32/test/test_dport.c index 212c5d82bd..ac8498631a 100644 --- a/components/esp32/test/test_dport.c +++ b/components/esp32/test/test_dport.c @@ -11,7 +11,7 @@ #include "unity.h" #include "test_utils.h" #include "esp32/rom/uart.h" -#include "soc/uart_reg.h" +#include "soc/uart_periph.h" #include "soc/dport_reg.h" #include "soc/rtc.h" diff --git a/components/esp32/test/test_fastbus.c b/components/esp32/test/test_fastbus.c index 5a1ace8e11..626e925956 100644 --- a/components/esp32/test/test_fastbus.c +++ b/components/esp32/test/test_fastbus.c @@ -9,9 +9,8 @@ #include "freertos/queue.h" #include "freertos/xtensa_api.h" #include "unity.h" -#include "soc/uart_reg.h" +#include "soc/uart_periph.h" #include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" #include "driver/gpio.h" diff --git a/components/esp32/test/test_intr_alloc.c b/components/esp32/test/test_intr_alloc.c index 4439f9bcae..8255388e98 100644 --- a/components/esp32/test/test_intr_alloc.c +++ b/components/esp32/test/test_intr_alloc.c @@ -12,9 +12,9 @@ #include "freertos/queue.h" #include "freertos/xtensa_api.h" #include "unity.h" -#include "soc/uart_reg.h" +#include "soc/uart_periph.h" #include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" +#include "soc/gpio_periph.h" #include "esp_intr_alloc.h" #include "driver/periph_ctrl.h" #include "driver/timer.h" @@ -334,4 +334,4 @@ TEST_CASE("alloc and free isr handle on different core", "[esp32]") isr_alloc_free_test(); } -#endif \ No newline at end of file +#endif diff --git a/components/esp32/test/test_pm.c b/components/esp32/test/test_pm.c index ba3850daa6..cf031ab59c 100644 --- a/components/esp32/test/test_pm.c +++ b/components/esp32/test/test_pm.c @@ -13,9 +13,7 @@ #include "driver/timer.h" #include "driver/rtc_io.h" #include "esp32/ulp.h" -#include "soc/rtc_io_reg.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/rtc_gpio_channel.h" +#include "soc/rtc_periph.h" TEST_CASE("Can dump power management lock stats", "[pm]") { diff --git a/components/esp32/test/test_reset_reason.c b/components/esp32/test/test_reset_reason.c index 07b1b29f10..9d57a7f4c0 100644 --- a/components/esp32/test/test_reset_reason.c +++ b/components/esp32/test/test_reset_reason.c @@ -2,7 +2,7 @@ #include "esp_system.h" #include "esp_task_wdt.h" #include "esp_attr.h" -#include "soc/rtc_cntl_reg.h" +#include "soc/rtc_periph.h" #include "driver/timer.h" #include "esp32/rom/rtc.h" #include "esp_sleep.h" diff --git a/components/esp32/test/test_sleep.c b/components/esp32/test/test_sleep.c index fbda5f6da1..8712bdfd06 100644 --- a/components/esp32/test/test_sleep.c +++ b/components/esp32/test/test_sleep.c @@ -4,15 +4,14 @@ #include "esp_sleep.h" #include "esp32/clk.h" #include "driver/rtc_io.h" -#include "soc/gpio_reg.h" -#include "soc/rtc.h" -#include "soc/uart_reg.h" #include "esp32/rom/uart.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/semphr.h" +#include "soc/gpio_periph.h" +#include "soc/uart_periph.h" #include "soc/rtc.h" // for wakeup trigger defines -#include "soc/rtc_cntl_reg.h" // for read rtc registers directly (cause) +#include "soc/rtc_periph.h" // for read rtc registers directly (cause) #include "soc/soc.h" // for direct register read macros #include "esp32/rom/rtc.h" #include "esp_newlib.h" diff --git a/components/esp32/test/test_spiram_cache_flush.c b/components/esp32/test/test_spiram_cache_flush.c index 92116c3fd0..6e984be6ce 100644 --- a/components/esp32/test/test_spiram_cache_flush.c +++ b/components/esp32/test/test_spiram_cache_flush.c @@ -11,8 +11,6 @@ This code tests the interaction between PSRAM and SPI flash routines. #include "freertos/queue.h" #include "freertos/xtensa_api.h" #include "unity.h" -#include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" #include #include #include diff --git a/components/esp32/test/test_tsens.c b/components/esp32/test/test_tsens.c index bff507848b..1e311c6bc1 100644 --- a/components/esp32/test/test_tsens.c +++ b/components/esp32/test/test_tsens.c @@ -1,8 +1,8 @@ #include #include "unity.h" #include "esp32/rom/ets_sys.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/sens_reg.h" +#include "soc/rtc_periph.h" +#include "soc/sens_periph.h" TEST_CASE("can control TSENS using registers", "[rtc][ignore]") { diff --git a/components/esp32/test/test_unal_dma.c b/components/esp32/test/test_unal_dma.c index 7e67a89f5d..91c22c6c4f 100644 --- a/components/esp32/test/test_unal_dma.c +++ b/components/esp32/test/test_unal_dma.c @@ -14,12 +14,9 @@ #include "freertos/xtensa_api.h" #include "unity.h" -#include "soc/uart_reg.h" #include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" -#include "soc/gpio_sig_map.h" -#include "soc/gpio_reg.h" -#include "soc/i2s_reg.h" +#include "soc/gpio_periph.h" +#include "soc/i2s_periph.h" #define DPORT_I2S0_CLK_EN (BIT(4)) diff --git a/components/esp_adc_cal/esp_adc_cal.c b/components/esp_adc_cal/esp_adc_cal.c index 66cae9fed2..f71c086376 100644 --- a/components/esp_adc_cal/esp_adc_cal.c +++ b/components/esp_adc_cal/esp_adc_cal.c @@ -15,7 +15,7 @@ #include #include "esp_types.h" #include "driver/adc.h" -#include "soc/efuse_reg.h" +#include "soc/efuse_periph.h" #include "esp_err.h" #include "assert.h" #include "esp_adc_cal.h" diff --git a/components/esp_event/test/test_event.c b/components/esp_event/test/test_event.c index c5dcc868da..d6d9beab75 100644 --- a/components/esp_event/test/test_event.c +++ b/components/esp_event/test/test_event.c @@ -9,7 +9,6 @@ #include "freertos/task.h" #include "freertos/portmacro.h" #include "esp_log.h" -#include "soc/timer_group_struct.h" #include "driver/periph_ctrl.h" #include "driver/timer.h" diff --git a/components/esp_rom/include/esp32/rom/uart.h b/components/esp_rom/include/esp32/rom/uart.h index a010bfbca4..49d0e8cf71 100644 --- a/components/esp_rom/include/esp32/rom/uart.h +++ b/components/esp_rom/include/esp32/rom/uart.h @@ -19,7 +19,7 @@ #include "esp_attr.h" #include "ets_sys.h" #include "soc/soc.h" -#include "soc/uart_reg.h" +#include "soc/uart_periph.h" #ifdef __cplusplus extern "C" { diff --git a/components/esp_wifi/src/phy_init.c b/components/esp_wifi/src/phy_init.c index 8bc8eba228..b36b5754f3 100644 --- a/components/esp_wifi/src/phy_init.c +++ b/components/esp_wifi/src/phy_init.c @@ -22,7 +22,6 @@ #include "esp32/rom/ets_sys.h" #include "esp32/rom/rtc.h" #include "soc/rtc.h" -#include "soc/dport_reg.h" #include "esp_err.h" #include "esp_phy_init.h" diff --git a/components/espcoredump/src/core_dump_uart.c b/components/espcoredump/src/core_dump_uart.c index dfc62d9a88..d3afbe5d05 100644 --- a/components/espcoredump/src/core_dump_uart.c +++ b/components/espcoredump/src/core_dump_uart.c @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. #include -#include "soc/uart_reg.h" -#include "soc/io_mux_reg.h" +#include "soc/uart_periph.h" +#include "soc/gpio_periph.h" #include "driver/gpio.h" #include "esp32/clk.h" #include "esp_core_dump_priv.h" diff --git a/components/ethernet/emac_dev.c b/components/ethernet/emac_dev.c index 9a56dcd3f2..51b6f918d7 100644 --- a/components/ethernet/emac_dev.c +++ b/components/ethernet/emac_dev.c @@ -19,12 +19,8 @@ #include "esp32/rom/gpio.h" #include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/gpio_reg.h" -#include "soc/gpio_sig_map.h" -#include "soc/emac_reg_v2.h" -#include "soc/emac_ex_reg.h" +#include "soc/rtc_periph.h" +#include "soc/gpio_periph.h" #include "esp_log.h" #include "driver/gpio.h" diff --git a/components/ethernet/emac_dev.h b/components/ethernet/emac_dev.h index 3d686cf883..1c44f43660 100644 --- a/components/ethernet/emac_dev.h +++ b/components/ethernet/emac_dev.h @@ -20,7 +20,7 @@ extern "C" { #endif #include "esp_types.h" -#include "soc/emac_reg_v2.h" +#include "soc/emac_periph.h" #define EMAC_INTR_ENABLE_BIT (EMAC_DMAIN_TIE | EMAC_DMAIN_RIE | EMAC_DMAIN_RBUE | EMAC_DMAIN_NISE) diff --git a/components/ethernet/emac_main.c b/components/ethernet/emac_main.c index 7b087772d0..89046e8899 100644 --- a/components/ethernet/emac_main.c +++ b/components/ethernet/emac_main.c @@ -19,13 +19,10 @@ #include "esp32/rom/ets_sys.h" #include "esp32/rom/gpio.h" #include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" #include "soc/rtc.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/gpio_reg.h" +#include "soc/rtc_periph.h" +#include "soc/gpio_periph.h" #include "soc/dport_reg.h" -#include "soc/emac_ex_reg.h" -#include "soc/emac_reg_v2.h" #include "soc/soc.h" #include "tcpip_adapter.h" diff --git a/components/freemodbus/port/portserial.c b/components/freemodbus/port/portserial.c index 43bc887e46..54bbe8318b 100644 --- a/components/freemodbus/port/portserial.c +++ b/components/freemodbus/port/portserial.c @@ -44,7 +44,7 @@ #include "port.h" #include "driver/uart.h" #include "freertos/queue.h" // for queue support -#include "soc/uart_reg.h" +#include "soc/uart_periph.h" #include "driver/gpio.h" #include "esp_log.h" // for esp_log #include "esp_err.h" // for ESP_ERROR_CHECK macro diff --git a/components/freertos/test/test_freertos.c b/components/freertos/test/test_freertos.c index b760ba2290..5925b64870 100644 --- a/components/freertos/test/test_freertos.c +++ b/components/freertos/test/test_freertos.c @@ -12,9 +12,8 @@ #include "freertos/queue.h" #include "freertos/xtensa_api.h" #include "unity.h" -#include "soc/uart_reg.h" +#include "soc/uart_periph.h" #include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" #include "driver/gpio.h" diff --git a/components/freertos/test/test_newlib_reent.c b/components/freertos/test/test_newlib_reent.c index 4719d40bdc..ea723b70a3 100644 --- a/components/freertos/test/test_newlib_reent.c +++ b/components/freertos/test/test_newlib_reent.c @@ -13,10 +13,6 @@ #include "freertos/queue.h" #include "freertos/xtensa_api.h" #include "unity.h" -#include "soc/uart_reg.h" -#include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" - volatile static int done; volatile static int error; diff --git a/components/freertos/test/test_panic.c b/components/freertos/test/test_panic.c index 336bfea37d..295e0486f1 100644 --- a/components/freertos/test/test_panic.c +++ b/components/freertos/test/test_panic.c @@ -12,10 +12,6 @@ #include "freertos/queue.h" #include "freertos/xtensa_api.h" #include "unity.h" -#include "soc/uart_reg.h" -#include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" - TEST_CASE("Panic handler", "[freertos][ignore]") { diff --git a/components/freertos/test/test_spinlocks.c b/components/freertos/test/test_spinlocks.c index 3a99ebe2be..a54908f33c 100644 --- a/components/freertos/test/test_spinlocks.c +++ b/components/freertos/test/test_spinlocks.c @@ -12,9 +12,6 @@ #include "freertos/queue.h" #include "freertos/xtensa_api.h" #include "unity.h" -#include "soc/uart_reg.h" -#include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" #include "soc/cpu.h" #include "test_utils.h" diff --git a/components/freertos/xtensa_vectors.S b/components/freertos/xtensa_vectors.S index e5e63bcf15..3ddad261dc 100644 --- a/components/freertos/xtensa_vectors.S +++ b/components/freertos/xtensa_vectors.S @@ -94,7 +94,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "esp_private/panic_reason.h" #include "sdkconfig.h" #include "soc/soc.h" -#include "soc/dport_reg.h" /* Define for workaround: pin no-cpu-affinity tasks to a cpu when fpu is used. diff --git a/components/heap/test/test_malloc.c b/components/heap/test/test_malloc.c index bffb498d13..1ed67ce50c 100644 --- a/components/heap/test/test_malloc.c +++ b/components/heap/test/test_malloc.c @@ -12,9 +12,6 @@ #include "freertos/queue.h" #include "freertos/xtensa_api.h" #include "unity.h" -#include "soc/uart_reg.h" -#include "soc/dport_reg.h" -#include "soc/io_mux_reg.h" #include "esp_heap_caps.h" #include "esp_debug_helpers.h" diff --git a/components/mbedtls/port/esp32/aes.c b/components/mbedtls/port/esp32/aes.c index 631ed24fe3..0cf6c4257d 100644 --- a/components/mbedtls/port/esp32/aes.c +++ b/components/mbedtls/port/esp32/aes.c @@ -29,8 +29,7 @@ #include "mbedtls/aes.h" #include "mbedtls/platform_util.h" #include "esp32/aes.h" -#include "soc/dport_reg.h" -#include "soc/hwcrypto_reg.h" +#include "soc/hwcrypto_periph.h" #include #include diff --git a/components/mbedtls/port/esp32/sha.c b/components/mbedtls/port/esp32/sha.c index 0f8a4ca0af..7b7a0f415b 100644 --- a/components/mbedtls/port/esp32/sha.c +++ b/components/mbedtls/port/esp32/sha.c @@ -35,8 +35,7 @@ #include "esp32/sha.h" #include "esp32/rom/ets_sys.h" -#include "soc/dport_reg.h" -#include "soc/hwcrypto_reg.h" +#include "soc/hwcrypto_periph.h" #include "driver/periph_ctrl.h" inline static uint32_t SHA_LOAD_REG(esp_sha_type sha_type) { diff --git a/components/mbedtls/port/esp_bignum.c b/components/mbedtls/port/esp_bignum.c index 3f748efb34..843c40d9b6 100644 --- a/components/mbedtls/port/esp_bignum.c +++ b/components/mbedtls/port/esp_bignum.c @@ -28,17 +28,14 @@ #include #include #include "esp32/rom/bigint.h" -#include "soc/hwcrypto_reg.h" +#include "soc/hwcrypto_periph.h" #include "esp_system.h" #include "esp_log.h" #include "esp_intr_alloc.h" -#include "esp_intr_alloc.h" #include "esp_attr.h" #include -#include "soc/dport_reg.h" - #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/semphr.h" diff --git a/components/mbedtls/test/test_apb_dport_access.c b/components/mbedtls/test/test_apb_dport_access.c index 6cd763f947..392effc91f 100644 --- a/components/mbedtls/test/test_apb_dport_access.c +++ b/components/mbedtls/test/test_apb_dport_access.c @@ -6,7 +6,7 @@ #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" -#include "soc/uart_reg.h" +#include "soc/uart_periph.h" #include "test_apb_dport_access.h" #include "test_utils.h" diff --git a/components/newlib/test/test_time.c b/components/newlib/test/test_time.c index 213e42c3fa..92f1bf8999 100644 --- a/components/newlib/test/test_time.c +++ b/components/newlib/test/test_time.c @@ -4,7 +4,6 @@ #include "driver/adc.h" #include #include -#include "soc/rtc_cntl_reg.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/semphr.h" diff --git a/components/newlib/time.c b/components/newlib/time.c index 4458a2e66f..2eb8b4b271 100644 --- a/components/newlib/time.c +++ b/components/newlib/time.c @@ -29,7 +29,6 @@ #include "esp_timer.h" #include "soc/soc.h" #include "soc/rtc.h" -#include "soc/rtc_cntl_reg.h" #include "soc/frc_timer_reg.h" #include "esp32/rom/ets_sys.h" #include "freertos/FreeRTOS.h" diff --git a/components/sdmmc/test/test_sd.c b/components/sdmmc/test/test_sd.c index 07965960a0..b1b418c95c 100644 --- a/components/sdmmc/test/test_sd.c +++ b/components/sdmmc/test/test_sd.c @@ -20,7 +20,6 @@ #include "driver/sdmmc_host.h" #include "driver/sdspi_host.h" #include "driver/sdmmc_defs.h" -#include "soc/gpio_reg.h" #include "sdmmc_cmd.h" #include "esp_log.h" #include "esp_heap_caps.h" diff --git a/components/sdmmc/test/test_sdio.c b/components/sdmmc/test/test_sdio.c index f4eae05980..56213d7136 100644 --- a/components/sdmmc/test/test_sdio.c +++ b/components/sdmmc/test/test_sdio.c @@ -23,7 +23,6 @@ #include "driver/sdmmc_host.h" #include "driver/sdmmc_defs.h" #include "sdmmc_cmd.h" -#include "soc/gpio_reg.h" #include "unity.h" /* Second ESP32 board attached as follows: diff --git a/components/soc/esp32/cpu_util.c b/components/soc/esp32/cpu_util.c index bc052af98a..83ae830b94 100644 --- a/components/soc/esp32/cpu_util.c +++ b/components/soc/esp32/cpu_util.c @@ -15,7 +15,7 @@ #include "esp_attr.h" #include "soc/cpu.h" #include "soc/soc.h" -#include "soc/rtc_cntl_reg.h" +#include "soc/rtc_periph.h" #include "sdkconfig.h" void IRAM_ATTR esp_cpu_stall(int cpu_id) diff --git a/components/soc/esp32/include/soc/rtc.h b/components/soc/esp32/include/soc/rtc.h index 12f65caf9a..4dd0db6e2e 100644 --- a/components/soc/esp32/include/soc/rtc.h +++ b/components/soc/esp32/include/soc/rtc.h @@ -17,6 +17,7 @@ #include #include #include "soc/soc.h" +#include "soc/rtc_periph.h" #ifdef __cplusplus extern "C" { diff --git a/components/soc/esp32/rtc_clk.c b/components/soc/esp32/rtc_clk.c index 596ccf274e..80a749b22e 100644 --- a/components/soc/esp32/rtc_clk.c +++ b/components/soc/esp32/rtc_clk.c @@ -21,11 +21,10 @@ #include "esp32/rom/uart.h" #include "esp32/rom/gpio.h" #include "soc/rtc.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/rtc_io_reg.h" -#include "soc/sens_reg.h" +#include "soc/rtc_periph.h" +#include "soc/sens_periph.h" #include "soc/dport_reg.h" -#include "soc/efuse_reg.h" +#include "soc/efuse_periph.h" #include "soc/apb_ctrl_reg.h" #include "i2c_rtc_clk.h" #include "soc_log.h" diff --git a/components/soc/esp32/rtc_clk_init.c b/components/soc/esp32/rtc_clk_init.c index ef1485311e..e62846d194 100644 --- a/components/soc/esp32/rtc_clk_init.c +++ b/components/soc/esp32/rtc_clk_init.c @@ -21,11 +21,9 @@ #include "esp32/rom/uart.h" #include "esp32/rom/gpio.h" #include "soc/rtc.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/rtc_io_reg.h" -#include "soc/sens_reg.h" -#include "soc/dport_reg.h" -#include "soc/efuse_reg.h" +#include "soc/rtc_periph.h" +#include "soc/sens_periph.h" +#include "soc/efuse_periph.h" #include "soc/apb_ctrl_reg.h" #include "i2c_rtc_clk.h" #include "soc_log.h" diff --git a/components/soc/esp32/rtc_init.c b/components/soc/esp32/rtc_init.c index 7236225d43..e0cd4ba4a3 100644 --- a/components/soc/esp32/rtc_init.c +++ b/components/soc/esp32/rtc_init.c @@ -16,10 +16,10 @@ #include "soc/soc.h" #include "soc/rtc.h" -#include "soc/rtc_cntl_reg.h" +#include "soc/rtc_periph.h" #include "soc/dport_reg.h" -#include "soc/efuse_reg.h" -#include "soc/gpio_reg.h" +#include "soc/efuse_periph.h" +#include "soc/gpio_periph.h" void rtc_init(rtc_config_t cfg) diff --git a/components/soc/esp32/rtc_pm.c b/components/soc/esp32/rtc_pm.c index e5e7377259..f951ee1078 100644 --- a/components/soc/esp32/rtc_pm.c +++ b/components/soc/esp32/rtc_pm.c @@ -15,7 +15,6 @@ #include #include #include "soc/rtc.h" -#include "soc/rtc_cntl_reg.h" typedef enum { PM_LIGHT_SLEEP = BIT(2), /*!< WiFi PD, memory in light sleep */ diff --git a/components/soc/esp32/rtc_sleep.c b/components/soc/esp32/rtc_sleep.c index 6b8897ae25..d903dc70ab 100644 --- a/components/soc/esp32/rtc_sleep.c +++ b/components/soc/esp32/rtc_sleep.c @@ -15,11 +15,10 @@ #include #include "soc/soc.h" #include "soc/rtc.h" -#include "soc/rtc_cntl_reg.h" #include "soc/dport_reg.h" #include "soc/rtc.h" -#include "soc/i2s_reg.h" -#include "soc/timer_group_reg.h" +#include "soc/i2s_periph.h" +#include "soc/timer_periph.h" #include "soc/bb_reg.h" #include "soc/nrx_reg.h" #include "soc/fe_reg.h" diff --git a/components/soc/esp32/rtc_time.c b/components/soc/esp32/rtc_time.c index 5160f8602d..e644775645 100644 --- a/components/soc/esp32/rtc_time.c +++ b/components/soc/esp32/rtc_time.c @@ -15,8 +15,7 @@ #include #include "esp32/rom/ets_sys.h" #include "soc/rtc.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/timer_group_reg.h" +#include "soc/timer_periph.h" #include "soc_log.h" #define MHZ (1000000) diff --git a/components/soc/esp32/sdio_slave_periph.c b/components/soc/esp32/sdio_slave_periph.c index e7bd9d84bb..10f0c547b7 100644 --- a/components/soc/esp32/sdio_slave_periph.c +++ b/components/soc/esp32/sdio_slave_periph.c @@ -14,8 +14,7 @@ #include #include "soc/sdio_slave_periph.h" -#include "soc/io_mux_reg.h" -#include "soc/sdio_slave_pins.h" +#include "soc/gpio_periph.h" // I/O slot of sdio slave: // 0: GPIO 6, 11, 7, 8, 9, 10, diff --git a/components/soc/esp32/test/test_rtc_clk.c b/components/soc/esp32/test/test_rtc_clk.c index 3f8e876994..6983035580 100644 --- a/components/soc/esp32/test/test_rtc_clk.c +++ b/components/soc/esp32/test/test_rtc_clk.c @@ -3,10 +3,9 @@ #include "esp32/rom/ets_sys.h" #include "esp32/rom/uart.h" #include "soc/rtc.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/rtc_io_reg.h" -#include "soc/sens_reg.h" -#include "soc/io_mux_reg.h" +#include "soc/rtc_periph.h" +#include "soc/sens_periph.h" +#include "soc/gpio_periph.h" #include "driver/rtc_io.h" #include "test_utils.h" #include "freertos/FreeRTOS.h" diff --git a/components/spi_flash/spi_flash_rom_patch.c b/components/spi_flash/spi_flash_rom_patch.c index aacc62a7f5..e004525855 100644 --- a/components/spi_flash/spi_flash_rom_patch.c +++ b/components/spi_flash/spi_flash_rom_patch.c @@ -16,7 +16,7 @@ #include "esp32/rom/gpio.h" #include "esp32/rom/spi_flash.h" #include "sdkconfig.h" -#include "soc/spi_reg.h" +#include "soc/spi_periph.h" #define SPI_IDX 1 diff --git a/components/spi_flash/test/test_large_flash_writes.c b/components/spi_flash/test/test_large_flash_writes.c index 3a96ac458b..f530ca3788 100644 --- a/components/spi_flash/test/test_large_flash_writes.c +++ b/components/spi_flash/test/test_large_flash_writes.c @@ -27,8 +27,7 @@ #include #include #include "../cache_utils.h" -#include "soc/timer_group_struct.h" -#include "soc/timer_group_reg.h" +#include "soc/timer_periph.h" static const uint8_t large_const_buffer[16400] = { 203, // first byte diff --git a/components/spi_flash/test/test_read_write.c b/components/spi_flash/test/test_read_write.c index e46480f617..ecc7e23c49 100644 --- a/components/spi_flash/test/test_read_write.c +++ b/components/spi_flash/test/test_read_write.c @@ -25,8 +25,7 @@ #include #include #include "../cache_utils.h" -#include "soc/timer_group_struct.h" -#include "soc/timer_group_reg.h" +#include "soc/timer_periph.h" #include "esp_heap_caps.h" /* Base offset in flash for tests. */ diff --git a/components/vfs/test/test_vfs_select.c b/components/vfs/test/test_vfs_select.c index 341dec1c53..c8ff500da2 100644 --- a/components/vfs/test/test_vfs_select.c +++ b/components/vfs/test/test_vfs_select.c @@ -17,7 +17,6 @@ #include #include #include "unity.h" -#include "soc/uart_struct.h" #include "freertos/FreeRTOS.h" #include "driver/uart.h" #include "esp_vfs.h" diff --git a/components/vfs/test/test_vfs_uart.c b/components/vfs/test/test_vfs_uart.c index 62a639aa63..d46c7cb757 100644 --- a/components/vfs/test/test_vfs_uart.c +++ b/components/vfs/test/test_vfs_uart.c @@ -20,7 +20,6 @@ #include #include "unity.h" #include "esp32/rom/uart.h" -#include "soc/uart_struct.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/semphr.h" diff --git a/components/vfs/vfs_uart.c b/components/vfs/vfs_uart.c index fd0b028d50..147c54cb70 100644 --- a/components/vfs/vfs_uart.c +++ b/components/vfs/vfs_uart.c @@ -22,7 +22,6 @@ #include "esp_vfs.h" #include "esp_vfs_dev.h" #include "esp_attr.h" -#include "soc/uart_struct.h" #include "driver/uart.h" #include "sdkconfig.h" #include "driver/uart_select.h" diff --git a/examples/peripherals/mcpwm/mcpwm_basic_config/main/mcpwm_basic_config_example.c b/examples/peripherals/mcpwm/mcpwm_basic_config/main/mcpwm_basic_config_example.c index 3fc02e6dad..58fe18889a 100644 --- a/examples/peripherals/mcpwm/mcpwm_basic_config/main/mcpwm_basic_config_example.c +++ b/examples/peripherals/mcpwm/mcpwm_basic_config/main/mcpwm_basic_config_example.c @@ -21,8 +21,7 @@ #include "esp_attr.h" #include "soc/rtc.h" #include "driver/mcpwm.h" -#include "soc/mcpwm_reg.h" -#include "soc/mcpwm_struct.h" +#include "soc/mcpwm_periph.h" #define MCPWM_EN_CARRIER 0 //Make this 1 to test carrier submodule of mcpwm, set high frequency carrier parameters #define MCPWM_EN_DEADTIME 0 //Make this 1 to test deadtime submodule of mcpwm, set deadtime value and deadtime mode diff --git a/examples/peripherals/mcpwm/mcpwm_bldc_control/main/mcpwm_bldc_control_hall_sensor_example.c b/examples/peripherals/mcpwm/mcpwm_bldc_control/main/mcpwm_bldc_control_hall_sensor_example.c index 58c4b06cbe..ecef139cc6 100644 --- a/examples/peripherals/mcpwm/mcpwm_bldc_control/main/mcpwm_bldc_control_hall_sensor_example.c +++ b/examples/peripherals/mcpwm/mcpwm_bldc_control/main/mcpwm_bldc_control_hall_sensor_example.c @@ -23,8 +23,7 @@ #include "esp_attr.h" #include "soc/rtc.h" #include "driver/mcpwm.h" -#include "soc/mcpwm_reg.h" -#include "soc/mcpwm_struct.h" +#include "soc/mcpwm_periph.h" #define INITIAL_DUTY 10.0 //initial duty cycle is 10.0% #define MCPWM_GPIO_INIT 0 //select which function to use to initialize gpio signals diff --git a/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/mcpwm_brushed_dc_control_example.c b/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/mcpwm_brushed_dc_control_example.c index 00b5ddd06a..2c721e77a2 100644 --- a/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/mcpwm_brushed_dc_control_example.c +++ b/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/mcpwm_brushed_dc_control_example.c @@ -20,8 +20,7 @@ #include "esp_attr.h" #include "driver/mcpwm.h" -#include "soc/mcpwm_reg.h" -#include "soc/mcpwm_struct.h" +#include "soc/mcpwm_periph.h" #define GPIO_PWM0A_OUT 15 //Set GPIO 15 as PWM0A #define GPIO_PWM0B_OUT 16 //Set GPIO 16 as PWM0B @@ -93,4 +92,4 @@ void app_main() { printf("Testing brushed motor...\n"); xTaskCreate(mcpwm_example_brushed_motor_control, "mcpwm_examlpe_brushed_motor_control", 4096, NULL, 5, NULL); -} \ No newline at end of file +} diff --git a/examples/peripherals/mcpwm/mcpwm_servo_control/main/mcpwm_servo_control_example.c b/examples/peripherals/mcpwm/mcpwm_servo_control/main/mcpwm_servo_control_example.c index 1a7557379f..2a944e5daf 100644 --- a/examples/peripherals/mcpwm/mcpwm_servo_control/main/mcpwm_servo_control_example.c +++ b/examples/peripherals/mcpwm/mcpwm_servo_control/main/mcpwm_servo_control_example.c @@ -13,8 +13,7 @@ #include "esp_attr.h" #include "driver/mcpwm.h" -#include "soc/mcpwm_reg.h" -#include "soc/mcpwm_struct.h" +#include "soc/mcpwm_periph.h" //You can get these value from the datasheet of servo you use, in general pulse width varies between 1000 to 2000 mocrosecond #define SERVO_MIN_PULSEWIDTH 1000 //Minimum pulse width in microsecond @@ -75,4 +74,4 @@ void app_main() { printf("Testing servo motor.......\n"); xTaskCreate(mcpwm_example_servo_control, "mcpwm_example_servo_control", 4096, NULL, 5, NULL); -} \ No newline at end of file +} diff --git a/examples/peripherals/pcnt/main/pcnt_example_main.c b/examples/peripherals/pcnt/main/pcnt_example_main.c index 3a37c55fd0..f734501fcc 100644 --- a/examples/peripherals/pcnt/main/pcnt_example_main.c +++ b/examples/peripherals/pcnt/main/pcnt_example_main.c @@ -20,7 +20,6 @@ #include "driver/pcnt.h" #include "esp_attr.h" #include "esp_log.h" -#include "soc/gpio_sig_map.h" /** * TEST CODE BRIEF diff --git a/examples/peripherals/rmt_nec_tx_rx/main/infrared_nec_main.c b/examples/peripherals/rmt_nec_tx_rx/main/infrared_nec_main.c index ae20b070f2..cebffbcaeb 100644 --- a/examples/peripherals/rmt_nec_tx_rx/main/infrared_nec_main.c +++ b/examples/peripherals/rmt_nec_tx_rx/main/infrared_nec_main.c @@ -15,8 +15,6 @@ #include "esp_err.h" #include "esp_log.h" #include "driver/rmt.h" -#include "driver/periph_ctrl.h" -#include "soc/rmt_reg.h" static const char* NEC_TAG = "NEC"; diff --git a/examples/peripherals/sdio/host/components/esp_slave/esp_slave.c b/examples/peripherals/sdio/host/components/esp_slave/esp_slave.c index cbe3fe2660..fdfaa291e3 100644 --- a/examples/peripherals/sdio/host/components/esp_slave/esp_slave.c +++ b/examples/peripherals/sdio/host/components/esp_slave/esp_slave.c @@ -15,7 +15,7 @@ #include "esp_slave.h" #include "esp_log.h" #include "freertos/task.h" -#include "soc/host_reg.h" +#include "soc/sdio_slave_periph.h" static const char TAG[] = "esp_slave"; diff --git a/examples/peripherals/sdio/host/components/esp_slave/include/esp_slave.h b/examples/peripherals/sdio/host/components/esp_slave/include/esp_slave.h index 56deab0f7d..c2d4d31d24 100644 --- a/examples/peripherals/sdio/host/components/esp_slave/include/esp_slave.h +++ b/examples/peripherals/sdio/host/components/esp_slave/include/esp_slave.h @@ -14,7 +14,7 @@ #include "sdmmc_cmd.h" #include "driver/sdmmc_defs.h" -#include "soc/host_reg.h" +#include "soc/sdio_slave_periph.h" /* * NOTE: This component is for example purpose only. Assertion fails if any of diff --git a/examples/peripherals/sdio/host/main/app_main.c b/examples/peripherals/sdio/host/main/app_main.c index 23245a3fc7..5015048f72 100644 --- a/examples/peripherals/sdio/host/main/app_main.c +++ b/examples/peripherals/sdio/host/main/app_main.c @@ -17,13 +17,13 @@ #include "freertos/queue.h" #include "soc/sdmmc_periph.h" +#include "soc/sdio_slave_periph.h" #include "esp_log.h" #include "esp_attr.h" #include "esp_slave.h" #include "sdkconfig.h" #include "driver/sdmmc_host.h" #include "driver/sdspi_host.h" -#include "soc/sdio_slave_pins.h" /* * For SDIO master-slave board, we have 3 pins controlling power of 3 different diff --git a/examples/peripherals/sdio/slave/main/app_main.c b/examples/peripherals/sdio/slave/main/app_main.c index 410209bb24..dd7a73a61b 100644 --- a/examples/peripherals/sdio/slave/main/app_main.c +++ b/examples/peripherals/sdio/slave/main/app_main.c @@ -11,7 +11,6 @@ #include "esp32/rom/lldesc.h" #include "sys/queue.h" #include "soc/soc.h" -#include "soc/sdio_slave_periph.h" #include "freertos/task.h" #include "freertos/ringbuf.h" #include "sdkconfig.h" diff --git a/examples/peripherals/spi_master/main/spi_master_example_main.c b/examples/peripherals/spi_master/main/spi_master_example_main.c index 346488bd42..3d4d304ea7 100644 --- a/examples/peripherals/spi_master/main/spi_master_example_main.c +++ b/examples/peripherals/spi_master/main/spi_master_example_main.c @@ -13,7 +13,6 @@ #include "freertos/task.h" #include "esp_system.h" #include "driver/spi_master.h" -#include "soc/gpio_struct.h" #include "driver/gpio.h" #include "pretty_effect.h" diff --git a/examples/peripherals/spi_slave/receiver/main/app_main.c b/examples/peripherals/spi_slave/receiver/main/app_main.c index 3c7aef4951..c5362dd97b 100644 --- a/examples/peripherals/spi_slave/receiver/main/app_main.c +++ b/examples/peripherals/spi_slave/receiver/main/app_main.c @@ -26,7 +26,7 @@ #include "esp_event.h" #include "esp_event_loop.h" #include "nvs_flash.h" -#include "soc/rtc_cntl_reg.h" +#include "soc/rtc_periph.h" #include "esp32/rom/cache.h" #include "driver/spi_slave.h" #include "esp_log.h" diff --git a/examples/peripherals/spi_slave/sender/main/app_main.c b/examples/peripherals/spi_slave/sender/main/app_main.c index dc16bd5566..af7dc22752 100644 --- a/examples/peripherals/spi_slave/sender/main/app_main.c +++ b/examples/peripherals/spi_slave/sender/main/app_main.c @@ -26,13 +26,12 @@ #include "esp_event.h" #include "esp_event_loop.h" #include "nvs_flash.h" -#include "soc/rtc_cntl_reg.h" +#include "soc/rtc_periph.h" #include "esp32/rom/cache.h" #include "driver/spi_master.h" #include "esp_log.h" #include "esp_spi_flash.h" -#include "soc/gpio_reg.h" #include "driver/gpio.h" #include "esp_intr_alloc.h" diff --git a/examples/peripherals/timer_group/main/timer_group_example_main.c b/examples/peripherals/timer_group/main/timer_group_example_main.c index 0e1ee36fc6..572e35e61d 100644 --- a/examples/peripherals/timer_group/main/timer_group_example_main.c +++ b/examples/peripherals/timer_group/main/timer_group_example_main.c @@ -12,7 +12,6 @@ #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" -#include "soc/timer_group_struct.h" #include "driver/periph_ctrl.h" #include "driver/timer.h" diff --git a/examples/peripherals/touch_pad_interrupt/main/tp_interrupt_main.c b/examples/peripherals/touch_pad_interrupt/main/tp_interrupt_main.c index e3e3cbf212..1ed6bcabd3 100644 --- a/examples/peripherals/touch_pad_interrupt/main/tp_interrupt_main.c +++ b/examples/peripherals/touch_pad_interrupt/main/tp_interrupt_main.c @@ -12,8 +12,8 @@ #include "esp_log.h" #include "driver/touch_pad.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/sens_reg.h" +#include "soc/rtc_periph.h" +#include "soc/sens_periph.h" static const char* TAG = "Touch pad"; #define TOUCH_THRESH_NO_USE (0) diff --git a/examples/peripherals/uart/uart_async_rxtxtasks/main/uart_async_rxtxtasks_main.c b/examples/peripherals/uart/uart_async_rxtxtasks/main/uart_async_rxtxtasks_main.c index 988640a9c2..1933b0621e 100644 --- a/examples/peripherals/uart/uart_async_rxtxtasks/main/uart_async_rxtxtasks_main.c +++ b/examples/peripherals/uart/uart_async_rxtxtasks/main/uart_async_rxtxtasks_main.c @@ -11,7 +11,6 @@ #include "esp_system.h" #include "esp_log.h" #include "driver/uart.h" -#include "soc/uart_struct.h" #include "string.h" #include "driver/gpio.h" diff --git a/examples/peripherals/uart/uart_echo_rs485/main/rs485_example.c b/examples/peripherals/uart/uart_echo_rs485/main/rs485_example.c index 05b5fb9cf3..22204b73fe 100644 --- a/examples/peripherals/uart/uart_echo_rs485/main/rs485_example.c +++ b/examples/peripherals/uart/uart_echo_rs485/main/rs485_example.c @@ -16,7 +16,6 @@ #include "driver/uart.h" #include "freertos/queue.h" #include "esp_log.h" -#include "soc/uart_struct.h" /** * This is a example example which echos any data it receives on UART back to the sender. diff --git a/examples/system/app_trace_to_host/main/app_trace_to_host_example_main.c b/examples/system/app_trace_to_host/main/app_trace_to_host_example_main.c index cff05f51b0..bedeeb35c7 100644 --- a/examples/system/app_trace_to_host/main/app_trace_to_host_example_main.c +++ b/examples/system/app_trace_to_host/main/app_trace_to_host_example_main.c @@ -12,8 +12,8 @@ #include "freertos/task.h" #include "esp_app_trace.h" #include "esp_log.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/sens_reg.h" +#include "soc/rtc_periph.h" +#include "soc/sens_periph.h" #include "driver/adc.h" #include "driver/dac.h" diff --git a/examples/system/console/components/cmd_system/cmd_system.c b/examples/system/console/components/cmd_system/cmd_system.c index aae2ee6c4e..50fe5ec09c 100644 --- a/examples/system/console/components/cmd_system/cmd_system.c +++ b/examples/system/console/components/cmd_system/cmd_system.c @@ -20,7 +20,6 @@ #include "argtable3/argtable3.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" -#include "soc/rtc_cntl_reg.h" #include "esp32/rom/uart.h" #include "cmd_system.h" #include "sdkconfig.h" diff --git a/examples/system/deep_sleep/main/deep_sleep_example_main.c b/examples/system/deep_sleep/main/deep_sleep_example_main.c index 5e3866d6ec..5843e64aa9 100644 --- a/examples/system/deep_sleep/main/deep_sleep_example_main.c +++ b/examples/system/deep_sleep/main/deep_sleep_example_main.c @@ -20,8 +20,7 @@ #include "driver/touch_pad.h" #include "driver/adc.h" #include "driver/rtc_io.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/sens_reg.h" +#include "soc/sens_periph.h" #include "soc/rtc.h" static RTC_DATA_ATTR struct timeval sleep_enter_time; diff --git a/tools/unit-test-app/components/test_utils/ref_clock.c b/tools/unit-test-app/components/test_utils/ref_clock.c index 3a25a6227c..c66ff28b9e 100644 --- a/tools/unit-test-app/components/test_utils/ref_clock.c +++ b/tools/unit-test-app/components/test_utils/ref_clock.c @@ -31,14 +31,12 @@ */ #include "test_utils.h" -#include "soc/rmt_struct.h" -#include "soc/pcnt_struct.h" -#include "soc/pcnt_reg.h" -#include "soc/gpio_sig_map.h" +#include "soc/rmt_periph.h" +#include "soc/pcnt_periph.h" +#include "soc/gpio_periph.h" #include "soc/dport_reg.h" #include "esp32/rom/gpio.h" #include "esp32/rom/ets_sys.h" -#include "driver/gpio.h" #include "esp_intr_alloc.h" #include "freertos/FreeRTOS.h" #include "driver/periph_ctrl.h"