diff --git a/components/bootloader/src/main/bootloader_start.c b/components/bootloader/src/main/bootloader_start.c index 20fb9fc1c0..1f6274ef08 100644 --- a/components/bootloader/src/main/bootloader_start.c +++ b/components/bootloader/src/main/bootloader_start.c @@ -18,7 +18,6 @@ #include "esp_attr.h" #include "esp_log.h" -#include "esp_dport_access.h" #include "rom/cache.h" #include "rom/efuse.h" diff --git a/components/bootloader_support/src/bootloader_random.c b/components/bootloader_support/src/bootloader_random.c index 480f603e64..9f3d602e02 100644 --- a/components/bootloader_support/src/bootloader_random.c +++ b/components/bootloader_support/src/bootloader_random.c @@ -20,7 +20,6 @@ #include "soc/dport_reg.h" #include "soc/i2s_reg.h" #include "esp_log.h" -#include "esp_dport_access.h" #ifndef BOOTLOADER_BUILD #include "esp_system.h" diff --git a/components/driver/periph_ctrl.c b/components/driver/periph_ctrl.c index 7615d94abd..caadcdc155 100644 --- a/components/driver/periph_ctrl.c +++ b/components/driver/periph_ctrl.c @@ -13,7 +13,6 @@ // limitations under the License. #include #include "esp_intr.h" -#include "esp_dport_access.h" #include "freertos/FreeRTOS.h" #include "freertos/semphr.h" #include "freertos/xtensa_api.h" diff --git a/components/driver/spi_common.c b/components/driver/spi_common.c index 14cb9c661b..08806fee7e 100644 --- a/components/driver/spi_common.c +++ b/components/driver/spi_common.c @@ -24,7 +24,6 @@ #include "esp_attr.h" #include "esp_intr.h" #include "esp_intr_alloc.h" -#include "esp_dport_access.h" #include "esp_log.h" #include "esp_err.h" #include "soc/soc.h" diff --git a/components/esp32/app_trace.c b/components/esp32/app_trace.c index 18a12f8589..32efcf5572 100644 --- a/components/esp32/app_trace.c +++ b/components/esp32/app_trace.c @@ -149,7 +149,6 @@ #include "soc/timer_group_struct.h" #include "soc/timer_group_reg.h" #include "esp_app_trace.h" -#include "esp_dport_access.h" #if CONFIG_ESP32_APPTRACE_ENABLE #define ESP_APPTRACE_DEBUG_STATS_ENABLE 0 diff --git a/components/esp32/cache_err_int.c b/components/esp32/cache_err_int.c index 8fd1f009e8..d8fa649a00 100644 --- a/components/esp32/cache_err_int.c +++ b/components/esp32/cache_err_int.c @@ -27,7 +27,6 @@ #include "esp_err.h" #include "esp_intr.h" #include "esp_attr.h" -#include "esp_dport_access.h" #include "soc/dport_reg.h" #include "sdkconfig.h" diff --git a/components/esp32/crosscore_int.c b/components/esp32/crosscore_int.c index 27fb9887fe..0d5ccb35f7 100644 --- a/components/esp32/crosscore_int.c +++ b/components/esp32/crosscore_int.c @@ -18,7 +18,6 @@ #include "esp_err.h" #include "esp_intr.h" #include "esp_intr_alloc.h" -#include "esp_dport_access.h" #include "rom/ets_sys.h" #include "rom/uart.h" diff --git a/components/esp32/deep_sleep.c b/components/esp32/deep_sleep.c index d13b8d556e..f2ae8e139d 100644 --- a/components/esp32/deep_sleep.c +++ b/components/esp32/deep_sleep.c @@ -16,7 +16,6 @@ #include #include "esp_attr.h" #include "esp_deep_sleep.h" -#include "esp_dport_access.h" #include "esp_log.h" #include "esp_clk.h" #include "rom/cache.h" diff --git a/components/esp32/dport_access.c b/components/esp32/dport_access.c index 3d45debef0..834d046e6d 100644 --- a/components/esp32/dport_access.c +++ b/components/esp32/dport_access.c @@ -25,7 +25,6 @@ #include "esp_attr.h" #include "esp_err.h" #include "esp_intr.h" -#include "esp_dport_access.h" #include "rom/ets_sys.h" #include "rom/uart.h" diff --git a/components/esp32/hwcrypto/aes.c b/components/esp32/hwcrypto/aes.c index 74f87d9a7b..4b6b220cfb 100644 --- a/components/esp32/hwcrypto/aes.c +++ b/components/esp32/hwcrypto/aes.c @@ -29,7 +29,6 @@ #include "hwcrypto/aes.h" #include "rom/aes.h" #include "soc/dport_reg.h" -#include "esp_dport_access.h" #include static _lock_t aes_lock; diff --git a/components/esp32/hwcrypto/sha.c b/components/esp32/hwcrypto/sha.c index e7de230843..c9c8d33eee 100644 --- a/components/esp32/hwcrypto/sha.c +++ b/components/esp32/hwcrypto/sha.c @@ -35,7 +35,6 @@ #include "rom/ets_sys.h" #include "soc/dport_reg.h" #include "soc/hwcrypto_reg.h" -#include "esp_dport_access.h" inline static uint32_t SHA_LOAD_REG(esp_sha_type sha_type) { return SHA_1_LOAD_REG + sha_type * 0x10; diff --git a/components/esp32/include/esp_dport_access.h b/components/esp32/include/esp_dport_access.h index a7ce266690..14b589aa4a 100644 --- a/components/esp32/include/esp_dport_access.h +++ b/components/esp32/include/esp_dport_access.h @@ -15,95 +15,8 @@ #ifndef _ESP_DPORT_ACCESS_H_ #define _ESP_DPORT_ACCESS_H_ -#include - void esp_dport_access_stall_other_cpu_start(void); void esp_dport_access_stall_other_cpu_end(void); void esp_dport_access_int_init(void); -#if defined(BOOTLOADER_BUILD) || defined(CONFIG_FREERTOS_UNICORE) -#define DPORT_STAL_OTHER_CPU_START() -#define DPORT_STAL_OTHER_CPU_END() -#else -#define DPORT_STAL_OTHER_CPU_START() esp_dport_access_stall_other_cpu_start() -#define DPORT_STAL_OTHER_CPU_END() esp_dport_access_stall_other_cpu_end() -#endif - -#define IS_DPORT_REG(_r) (((_r) >= DR_REG_DPORT_BASE) && (_r) <= DPORT_DATE_REG) - -//Registers Operation {{ - -#define _REG_WRITE(_r, _v) (*(volatile uint32_t *)(_r)) = (_v) -#define _REG_READ(_r) (*(volatile uint32_t *)(_r)) -//write value to register -#define DPORT_REG_WRITE(_r, _v) {DPORT_STAL_OTHER_CPU_START(); (*(volatile uint32_t *)(_r)) = (_v); DPORT_STAL_OTHER_CPU_END();} - -//read value from register -#define DPORT_REG_READ(_r) ({uint32_t val; DPORT_STAL_OTHER_CPU_START(); val = (*(volatile uint32_t *)(_r)); DPORT_STAL_OTHER_CPU_END(); val;}) - -//get bit or get bits from register -#define DPORT_REG_GET_BIT(_r, _b) ({uint32_t val; DPORT_STAL_OTHER_CPU_START(); val = (*(volatile uint32_t*)(_r) & (_b)); DPORT_STAL_OTHER_CPU_END(); val;}) - -//set bit or set bits to register -#define DPORT_REG_SET_BIT(_r, _b) {DPORT_STAL_OTHER_CPU_START(); (*(volatile uint32_t*)(_r) |= (_b)); DPORT_STAL_OTHER_CPU_END();} - -//clear bit or clear bits of register -#define DPORT_REG_CLR_BIT(_r, _b) {DPORT_STAL_OTHER_CPU_START(); (*(volatile uint32_t*)(_r) &= ~(_b)); DPORT_STAL_OTHER_CPU_END();} - -//set bits of register controlled by mask -#define DPORT_REG_SET_BITS(_r, _b, _m) {DPORT_STAL_OTHER_CPU_START(); (*(volatile uint32_t*)(_r) = (*(volatile uint32_t*)(_r) & ~(_m)) | ((_b) & (_m))); DPORT_STAL_OTHER_CPU_END();} - -//get field from register, uses field _S & _V to determine mask -#define DPORT_REG_GET_FIELD(_r, _f) ({uint32_t val; DPORT_STAL_OTHER_CPU_START(); val = ((_REG_READ(_r) >> (_f##_S)) & (_f##_V)); DPORT_STAL_OTHER_CPU_END(); val;}) - -//set field to register, used when _f is not left shifted by _f##_S -#define DPORT_REG_SET_FIELD(_r, _f, _v) {DPORT_STAL_OTHER_CPU_START(); (_REG_WRITE((_r),((_REG_READ(_r) & ~((_f) << (_f##_S)))|(((_v) & (_f))<<(_f##_S))))); DPORT_STAL_OTHER_CPU_END();} - -//get field value from a variable, used when _f is not left shifted by _f##_S -#define DPORT_VALUE_GET_FIELD(_r, _f) ({uint32_t val; DPORT_STAL_OTHER_CPU_START(); val = (((_r) >> (_f##_S)) & (_f)); DPORT_STAL_OTHER_CPU_END(); val;}) - -//get field value from a variable, used when _f is left shifted by _f##_S -#define DPORT_VALUE_GET_FIELD2(_r, _f) ({uint32_t val; DPORT_STAL_OTHER_CPU_START(); val = (((_r) & (_f))>> (_f##_S)); DPORT_STAL_OTHER_CPU_END(); val;}) - -//set field value to a variable, used when _f is not left shifted by _f##_S -#define DPORT_VALUE_SET_FIELD(_r, _f, _v) {DPORT_STAL_OTHER_CPU_START(); ((_r)=(((_r) & ~((_f) << (_f##_S)))|((_v)<<(_f##_S)))); DPORT_STAL_OTHER_CPU_END();} - -//set field value to a variable, used when _f is left shifted by _f##_S -#define DPORT_VALUE_SET_FIELD2(_r, _f, _v) {DPORT_STAL_OTHER_CPU_START(); ((_r)=(((_r) & ~(_f))|((_v)<<(_f##_S)))); DPORT_STAL_OTHER_CPU_END();} - -//generate a value from a field value, used when _f is not left shifted by _f##_S -#define DPORT_FIELD_TO_VALUE(_f, _v) ({uint32_t val; DPORT_STAL_OTHER_CPU_START(); val = (((_v)&(_f))<<_f##_S); DPORT_STAL_OTHER_CPU_END(); val;}) - -//generate a value from a field value, used when _f is left shifted by _f##_S -#define DPORT_FIELD_TO_VALUE2(_f, _v) ({uint32_t val; DPORT_STAL_OTHER_CPU_START(); val = (((_v)<<_f##_S) & (_f)); DPORT_STAL_OTHER_CPU_END(); val;}) - -#define _READ_PERI_REG(addr) (*((volatile uint32_t *)ETS_UNCACHED_ADDR(addr))) -#define _WRITE_PERI_REG(addr, val) (*((volatile uint32_t *)ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val) - -//read value from register -#define DPORT_READ_PERI_REG(addr) ({uint32_t val; DPORT_STAL_OTHER_CPU_START(); val = (*((volatile uint32_t *)ETS_UNCACHED_ADDR(addr))); DPORT_STAL_OTHER_CPU_END(); val;}) - -//write value to register -#define DPORT_WRITE_PERI_REG(addr, val) {DPORT_STAL_OTHER_CPU_START(); (*((volatile uint32_t *)ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val); DPORT_STAL_OTHER_CPU_END();} - -//clear bits of register controlled by mask -#define DPORT_CLEAR_PERI_REG_MASK(reg, mask) {DPORT_STAL_OTHER_CPU_START(); _WRITE_PERI_REG((reg), (_READ_PERI_REG(reg)&(~(mask)))); DPORT_STAL_OTHER_CPU_END();} - -//set bits of register controlled by mask -#define DPORT_SET_PERI_REG_MASK(reg, mask) {DPORT_STAL_OTHER_CPU_START(); _WRITE_PERI_REG((reg), (_READ_PERI_REG(reg)|(mask))); DPORT_STAL_OTHER_CPU_END();} - -//get bits of register controlled by mask -#define DPORT_GET_PERI_REG_MASK(reg, mask) ({uint32_t val; DPORT_STAL_OTHER_CPU_START(); val = (_READ_PERI_REG(reg) & (mask)); DPORT_STAL_OTHER_CPU_END(); val;}) - -//get bits of register controlled by highest bit and lowest bit -#define DPORT_GET_PERI_REG_BITS(reg, hipos,lowpos) ({uint32_t val; DPORT_STAL_OTHER_CPU_START(); val = ((_READ_PERI_REG(reg)>>(lowpos))&((1<<((hipos)-(lowpos)+1))-1)); DPORT_STAL_OTHER_CPU_END(); val;}) - -//set bits of register controlled by mask and shift -#define DPORT_SET_PERI_REG_BITS(reg,bit_map,value,shift) {DPORT_STAL_OTHER_CPU_START(); (_WRITE_PERI_REG((reg),(_READ_PERI_REG(reg)&(~((bit_map)<<(shift))))|(((value) & bit_map)<<(shift)) )); DPORT_STAL_OTHER_CPU_END();} - -//get field of register -#define DPORT_GET_PERI_REG_BITS2(reg, mask,shift) ({uint32_t val; DPORT_STAL_OTHER_CPU_START(); val = ((_READ_PERI_REG(reg)>>(shift))&(mask)); DPORT_STAL_OTHER_CPU_END(); val;}) -//}} - - #endif /* _ESP_DPORT_ACCESS_H_ */ diff --git a/components/esp32/phy_init.c b/components/esp32/phy_init.c index 5d616deb80..47af33e843 100644 --- a/components/esp32/phy_init.c +++ b/components/esp32/phy_init.c @@ -26,7 +26,6 @@ #include "esp_err.h" #include "esp_phy_init.h" -#include "esp_dport_access.h" #include "esp_system.h" #include "esp_log.h" #include "nvs.h" diff --git a/components/esp32/system_api.c b/components/esp32/system_api.c index 9f2aad8bb8..78cad94ec1 100644 --- a/components/esp32/system_api.c +++ b/components/esp32/system_api.c @@ -19,7 +19,6 @@ #include "esp_wifi.h" #include "esp_wifi_internal.h" #include "esp_log.h" -#include "esp_dport_access.h" #include "sdkconfig.h" #include "rom/efuse.h" #include "rom/cache.h" diff --git a/components/esp32/test/test_ahb_arb.c b/components/esp32/test/test_ahb_arb.c index 43b138c561..d36d498b08 100644 --- a/components/esp32/test/test_ahb_arb.c +++ b/components/esp32/test/test_ahb_arb.c @@ -21,7 +21,6 @@ #include "soc/gpio_reg.h" #include "soc/i2s_reg.h" -#include "esp_dport_access.h" #define DPORT_I2S0_CLK_EN (BIT(4)) diff --git a/components/esp32/test/test_unal_dma.c b/components/esp32/test/test_unal_dma.c index 948f35e29f..f5788bff36 100644 --- a/components/esp32/test/test_unal_dma.c +++ b/components/esp32/test/test_unal_dma.c @@ -21,7 +21,6 @@ #include "soc/gpio_reg.h" #include "soc/i2s_reg.h" -#include "esp_dport_access.h" #define DPORT_I2S0_CLK_EN (BIT(4)) #define DPORT_I2S0_RST (BIT(4)) diff --git a/components/freertos/test/test_freertos.c b/components/freertos/test/test_freertos.c index e85037b020..745e31a9a0 100644 --- a/components/freertos/test/test_freertos.c +++ b/components/freertos/test/test_freertos.c @@ -15,7 +15,6 @@ #include "soc/uart_reg.h" #include "soc/dport_reg.h" #include "soc/io_mux_reg.h" -#include "esp_dport_access.h" void ets_isr_unmask(uint32_t unmask); diff --git a/components/freertos/test/test_ringbuf.c b/components/freertos/test/test_ringbuf.c index 32798a00f5..bb8fc72534 100644 --- a/components/freertos/test/test_ringbuf.c +++ b/components/freertos/test/test_ringbuf.c @@ -16,7 +16,6 @@ #include "soc/uart_reg.h" #include "soc/dport_reg.h" #include "soc/io_mux_reg.h" -#include "esp_dport_access.h" #include #include diff --git a/components/mbedtls/port/esp_bignum.c b/components/mbedtls/port/esp_bignum.c index bfc1a8fa9c..2c82a825f4 100644 --- a/components/mbedtls/port/esp_bignum.c +++ b/components/mbedtls/port/esp_bignum.c @@ -34,7 +34,6 @@ #include "esp_intr.h" #include "esp_intr_alloc.h" #include "esp_attr.h" -#include "esp_dport_access.h" #include "soc/dport_reg.h" diff --git a/components/soc/esp32/include/soc/dport_access.h b/components/soc/esp32/include/soc/dport_access.h new file mode 100644 index 0000000000..f5c2182485 --- /dev/null +++ b/components/soc/esp32/include/soc/dport_access.h @@ -0,0 +1,127 @@ +// Copyright 2010-2017 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#ifndef _DPORT_ACCESS_H_ +#define _DPORT_ACCESS_H_ + +#include +#include "esp_attr.h" + +void esp_dport_access_stall_other_cpu_start(void); +void esp_dport_access_stall_other_cpu_end(void); + +#if defined(BOOTLOADER_BUILD) || defined(CONFIG_FREERTOS_UNICORE) || !defined(ESP_PLATFORM) +#define DPORT_STAL_OTHER_CPU_START() +#define DPORT_STAL_OTHER_CPU_END() +#else +#define DPORT_STAL_OTHER_CPU_START() esp_dport_access_stall_other_cpu_start() +#define DPORT_STAL_OTHER_CPU_END() esp_dport_access_stall_other_cpu_end() +#endif + +#define IS_DPORT_REG(_r) (((_r) >= DR_REG_DPORT_BASE) && (_r) <= DPORT_DATE_REG) + +//Registers Operation {{ +#define _REG_READ(_r) (*(volatile uint32_t *)(_r)) +#define _REG_WRITE(_r, _v) (*(volatile uint32_t *)(_r)) = (_v) + +//write value to register +#define DPORT_REG_WRITE(_r, _v) _REG_WRITE(_r, _v) + +//read value from register +inline uint32_t IRAM_ATTR DPORT_REG_READ(uint32_t reg) +{ + uint32_t val; + + DPORT_STAL_OTHER_CPU_START(); + val = _REG_READ(reg); + DPORT_STAL_OTHER_CPU_END(); + + return val; +} + +//get bit or get bits from register +#define DPORT_REG_GET_BIT(_r, _b) (DPORT_REG_READ(_r) & (_b)) + +//set bit or set bits to register +#define DPORT_REG_SET_BIT(_r, _b) (*(volatile uint32_t*)(_r) |= (_b)) + +//clear bit or clear bits of register +#define DPORT_REG_CLR_BIT(_r, _b) (*(volatile uint32_t*)(_r) &= ~(_b)) + +//set bits of register controlled by mask +#define DPORT_REG_SET_BITS(_r, _b, _m) (*(volatile uint32_t*)(_r) = (DPORT_REG_READ(_r) & ~(_m)) | ((_b) & (_m))) + +//get field from register, uses field _S & _V to determine mask +#define DPORT_REG_GET_FIELD(_r, _f) ((DPORT_REG_READ(_r) >> (_f##_S)) & (_f##_V)) + +//set field to register, used when _f is not left shifted by _f##_S +#define DPORT_REG_SET_FIELD(_r, _f, _v) (DPORT_REG_WRITE((_r),((DPORT_REG_READ(_r) & ~((_f) << (_f##_S)))|(((_v) & (_f))<<(_f##_S))))) + +//get field value from a variable, used when _f is not left shifted by _f##_S +#define DPORT_VALUE_GET_FIELD(_r, _f) (((_r) >> (_f##_S)) & (_f)) + +//get field value from a variable, used when _f is left shifted by _f##_S +#define DPORT_VALUE_GET_FIELD2(_r, _f) (((_r) & (_f))>> (_f##_S)) + +//set field value to a variable, used when _f is not left shifted by _f##_S +#define DPORT_VALUE_SET_FIELD(_r, _f, _v) ((_r)=(((_r) & ~((_f) << (_f##_S)))|((_v)<<(_f##_S)))) + +//set field value to a variable, used when _f is left shifted by _f##_S +#define DPORT_VALUE_SET_FIELD2(_r, _f, _v) ((_r)=(((_r) & ~(_f))|((_v)<<(_f##_S)))) + +//generate a value from a field value, used when _f is not left shifted by _f##_S +#define DPORT_FIELD_TO_VALUE(_f, _v) (((_v)&(_f))<<_f##_S) + +//generate a value from a field value, used when _f is left shifted by _f##_S +#define DPORT_FIELD_TO_VALUE2(_f, _v) (((_v)<<_f##_S) & (_f)) + +#define _READ_PERI_REG(addr) (*((volatile uint32_t *)(addr))) +#define _WRITE_PERI_REG(addr, val) (*((volatile uint32_t *)(addr))) = (uint32_t)(val) + +//read value from register +inline uint32_t IRAM_ATTR DPORT_READ_PERI_REG(uint32_t addr) +{ + uint32_t val; + + DPORT_STAL_OTHER_CPU_START(); + val = _READ_PERI_REG(addr); + DPORT_STAL_OTHER_CPU_END(); + + return val; +} + +//write value to register +#define DPORT_WRITE_PERI_REG(addr, val) _WRITE_PERI_REG(addr, val) + +//clear bits of register controlled by mask +#define DPORT_CLEAR_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)&(~(mask)))) + +//set bits of register controlled by mask +#define DPORT_SET_PERI_REG_MASK(reg, mask) DPORT_WRITE_PERI_REG((reg), (DPORT_READ_PERI_REG(reg)|(mask))) + +//get bits of register controlled by mask +#define DPORT_GET_PERI_REG_MASK(reg, mask) (DPORT_READ_PERI_REG(reg) & (mask)) + +//get bits of register controlled by highest bit and lowest bit +#define DPORT_GET_PERI_REG_BITS(reg, hipos,lowpos) ((DPORT_READ_PERI_REG(reg)>>(lowpos))&((1<<((hipos)-(lowpos)+1))-1)) + +//set bits of register controlled by mask and shift +#define DPORT_SET_PERI_REG_BITS(reg,bit_map,value,shift) DPORT_WRITE_PERI_REG((reg),(DPORT_READ_PERI_REG(reg)&(~((bit_map)<<(shift))))|(((value) & bit_map)<<(shift))) + +//get field of register +#define DPORT_GET_PERI_REG_BITS2(reg, mask,shift) ((DPORT_READ_PERI_REG(reg)>>(shift))&(mask)) +//}} + + +#endif /* _DPORT_ACCESS_H_ */ diff --git a/components/soc/esp32/include/soc/dport_reg.h b/components/soc/esp32/include/soc/dport_reg.h index b2e14376e6..4e17363bcf 100644 --- a/components/soc/esp32/include/soc/dport_reg.h +++ b/components/soc/esp32/include/soc/dport_reg.h @@ -16,6 +16,14 @@ #include "soc.h" +#ifndef __ASSEMBLER__ +#include "dport_access.h" +#endif + +/* Registers defined in this header file must be accessed using special macros, + * prefixed with DPORT_. See soc/dport_access.h file for details. + */ + #define DPORT_PRO_BOOT_REMAP_CTRL_REG (DR_REG_DPORT_BASE + 0x000) /* DPORT_PRO_BOOT_REMAP : R/W ;bitpos:[0] ;default: 1'b0 ; */ /*description: */ diff --git a/components/soc/esp32/rtc_clk.c b/components/soc/esp32/rtc_clk.c index cf8711d298..7f6d992919 100644 --- a/components/soc/esp32/rtc_clk.c +++ b/components/soc/esp32/rtc_clk.c @@ -30,7 +30,6 @@ #include "soc_log.h" #include "sdkconfig.h" -#include "esp_dport_access.h" #define MHZ (1000000) diff --git a/components/soc/esp32/rtc_init.c b/components/soc/esp32/rtc_init.c index a7cec5f34d..8aabd5c261 100644 --- a/components/soc/esp32/rtc_init.c +++ b/components/soc/esp32/rtc_init.c @@ -19,7 +19,6 @@ #include "soc/rtc_cntl_reg.h" #include "soc/dport_reg.h" -#include "esp_dport_access.h" void rtc_init(rtc_config_t cfg) { diff --git a/components/soc/esp32/rtc_sleep.c b/components/soc/esp32/rtc_sleep.c index d78beb1edf..d8d643bb4b 100644 --- a/components/soc/esp32/rtc_sleep.c +++ b/components/soc/esp32/rtc_sleep.c @@ -25,7 +25,6 @@ #include "soc/fe_reg.h" #include "soc/rtc.h" #include "rom/ets_sys.h" -#include "esp_dport_access.h" #define MHZ (1000000) diff --git a/components/spi_flash/cache_utils.c b/components/spi_flash/cache_utils.c index 159b18ad6f..3bb08fe9cf 100644 --- a/components/spi_flash/cache_utils.c +++ b/components/spi_flash/cache_utils.c @@ -29,7 +29,6 @@ #include "esp_attr.h" #include "esp_intr_alloc.h" #include "esp_spi_flash.h" -#include "esp_dport_access.h" #include "esp_log.h" diff --git a/components/xtensa-debug-module/trax.c b/components/xtensa-debug-module/trax.c index 0da109f564..ec64d1bc6d 100644 --- a/components/xtensa-debug-module/trax.c +++ b/components/xtensa-debug-module/trax.c @@ -16,7 +16,6 @@ #include "soc/dport_reg.h" #include "sdkconfig.h" #include "esp_err.h" -#include "esp_dport_access.h" #include "eri.h" #include "xtensa-debug-module.h" #include "trax.h"