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).
#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"
#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"
#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"
#ifndef BOOTLOADER_BUILD
#include "esp_spi_flash.h"
#endif
-#include "soc/efuse_reg.h"
+#include "soc/efuse_periph.h"
/**
* @file esp_partition.h
#include <stdbool.h>
#include <esp_err.h>
-#include "soc/efuse_reg.h"
+#include "soc/efuse_periph.h"
#include "sdkconfig.h"
#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()
{
#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"
#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"
#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
#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"
#include <assert.h>
#include <sys/param.h>
#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;
#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"
#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 */
#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"
#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"
// limitations under the License.
#include <esp_types.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/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) \
#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"
#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"
#include <stdbool.h>
#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, /*!<The input voltage of ADC will be reduced to about 1/1 */
#include <stdint.h>
#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 */
#define _DRIVER_I2S_H_
#include "esp_err.h"
#include <esp_types.h>
-#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"
#include "driver/gpio.h"
#include "driver/periph_ctrl.h"
#include "esp_intr_alloc.h"
-#include "esp_intr_alloc.h"
#ifdef __cplusplus
extern "C" {
#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" {
#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
#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"
#include <stdint.h>
#include "esp_err.h"
#include "driver/gpio.h"
-#include "soc/rtc_gpio_channel.h"
#include "soc/rtc_periph.h"
#ifdef __cplusplus
extern "C" {
#ifndef __DRIVER_SIGMADELTA_H__
#define __DRIVER_SIGMADELTA_H__
#include <esp_types.h>
-#include "soc/gpio_sd_struct.h"
-#include "soc/gpio_sd_reg.h"
+#include "soc/sigmadelta_periph.h"
#include "driver/gpio.h"
#ifdef _cplusplus
#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
#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 */
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"
#include "freertos/queue.h"
#include "freertos/ringbuf.h"
#include <esp_types.h>
-#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 */
// limitations under the License.
#include <esp_types.h>
#include <string.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 "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";
#include <stdio.h>
#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"
// 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"
// See the License for the specific language governing permissions and
// limitations under the License.
#include <esp_types.h>
-#include "esp_intr_alloc.h"
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "freertos/xtensa_api.h"
#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"
#include <ctype.h>
#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"
#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"
#include <sys/param.h>
#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"
#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"
// 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";
#include <string.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 "soc/soc.h"
#include <string.h>
#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"
#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"
#include <soc/lldesc.h>
#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"
#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";
#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"
#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"
#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"
#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"
#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";
#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"
#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"
#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"
#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"
#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"
#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"
#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";
#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"
#include <strings.h>
#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"
#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"
#include "esp_attr.h"
#include "soc/dport_reg.h"
#include "sdkconfig.h"
-#include "esp32/dport_access.h"
void esp_cache_err_int_init()
{
#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"
#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"
#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"
#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"
#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"
#include <string.h>
#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"
#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"
#include "esp_log.h"
#include "esp_intr_alloc.h"
#include "esp_attr.h"
-#include "esp_intr_alloc.h"
#include "esp_ipc.h"
#include <limits.h>
#include <assert.h>
#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"
#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.
#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();
#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"
#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"
#ifndef _PSRAM_H
#define _PSRAM_H
-#include "soc/spi_reg.h"
+#include "soc/spi_periph.h"
#include "esp_err.h"
#include "sdkconfig.h"
#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"
#include <esp_types.h>
#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"
#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"
#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"
#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"
#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"
#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"
isr_alloc_free_test();
}
-#endif
\ No newline at end of file
+#endif
#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]")
{
#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"
#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"
#include "freertos/queue.h"
#include "freertos/xtensa_api.h"
#include "unity.h"
-#include "soc/dport_reg.h"
-#include "soc/io_mux_reg.h"
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#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]")
{
#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))
#include <stdint.h>
#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"
#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"
#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" {
#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"
// See the License for the specific language governing permissions and
// limitations under the License.
#include <string.h>
-#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"
#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"
#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)
#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"
#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
#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"
#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;
#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]")
{
#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"
#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.
#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"
#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 <sys/lock.h>
#include <freertos/FreeRTOS.h>
#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) {
#include <stdlib.h>
#include <sys/param.h>
#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 <mbedtls/bignum.h>
-#include "soc/dport_reg.h"
-
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/semphr.h"
#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"
#include "driver/adc.h"
#include <time.h>
#include <sys/time.h>
-#include "soc/rtc_cntl_reg.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/semphr.h"
#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"
#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"
#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:
#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)
#include <stddef.h>
#include <stdint.h>
#include "soc/soc.h"
+#include "soc/rtc_periph.h"
#ifdef __cplusplus
extern "C" {
#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"
#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"
#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)
#include <stdint.h>
#include <assert.h>
#include "soc/rtc.h"
-#include "soc/rtc_cntl_reg.h"
typedef enum {
PM_LIGHT_SLEEP = BIT(2), /*!< WiFi PD, memory in light sleep */
#include <stdint.h>
#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"
#include <stdint.h>
#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)
#include <stdint.h>
#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,
#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"
#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
#include <esp_log.h>
#include <esp32/rom/spi_flash.h>
#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
#include <esp_spi_flash.h>
#include <esp32/rom/spi_flash.h>
#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. */
#include <sys/fcntl.h>
#include <sys/param.h>
#include "unity.h"
-#include "soc/uart_struct.h"
#include "freertos/FreeRTOS.h"
#include "driver/uart.h"
#include "esp_vfs.h"
#include <sys/errno.h>
#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"
#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"
#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
#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
#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
{
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
+}
#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
{
printf("Testing servo motor.......\n");
xTaskCreate(mcpwm_example_servo_control, "mcpwm_example_servo_control", 4096, NULL, 5, NULL);
-}
\ No newline at end of file
+}
#include "driver/pcnt.h"
#include "esp_attr.h"
#include "esp_log.h"
-#include "soc/gpio_sig_map.h"
/**
* TEST CODE BRIEF
#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";
#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";
#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
#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
#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"
#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"
#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"
#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"
#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"
#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)
#include "esp_system.h"
#include "esp_log.h"
#include "driver/uart.h"
-#include "soc/uart_struct.h"
#include "string.h"
#include "driver/gpio.h"
#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.
#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"
#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"
#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;
*/
#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"