From 7f32995a4cc3b4685f43f15e47e82a12e1f59ebb Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 4 Dec 2018 11:17:38 +1100 Subject: [PATCH] soc: Add "#include " to all register structs Closes https://github.com/espressif/esp-idf/issues/2239 TW24912 --- components/soc/esp32/include/soc/apb_ctrl_struct.h | 2 ++ components/soc/esp32/include/soc/can_struct.h | 2 ++ components/soc/esp32/include/soc/gpio_sd_struct.h | 2 ++ components/soc/esp32/include/soc/gpio_struct.h | 2 ++ components/soc/esp32/include/soc/hinf_struct.h | 2 ++ components/soc/esp32/include/soc/host_struct.h | 2 ++ components/soc/esp32/include/soc/i2c_struct.h | 2 ++ components/soc/esp32/include/soc/i2s_struct.h | 2 ++ components/soc/esp32/include/soc/ledc_struct.h | 2 ++ components/soc/esp32/include/soc/mcpwm_struct.h | 2 ++ components/soc/esp32/include/soc/pcnt_struct.h | 2 ++ components/soc/esp32/include/soc/rmt_struct.h | 2 ++ components/soc/esp32/include/soc/rtc_cntl_struct.h | 2 ++ components/soc/esp32/include/soc/rtc_io_struct.h | 2 ++ components/soc/esp32/include/soc/sdmmc_struct.h | 2 ++ components/soc/esp32/include/soc/sens_struct.h | 2 ++ components/soc/esp32/include/soc/slc_struct.h | 2 ++ components/soc/esp32/include/soc/spi_struct.h | 2 ++ components/soc/esp32/include/soc/syscon_struct.h | 2 ++ components/soc/esp32/include/soc/timer_group_struct.h | 2 ++ components/soc/esp32/include/soc/uart_struct.h | 2 ++ components/soc/esp32/include/soc/uhci_struct.h | 2 ++ 22 files changed, 44 insertions(+) diff --git a/components/soc/esp32/include/soc/apb_ctrl_struct.h b/components/soc/esp32/include/soc/apb_ctrl_struct.h index 0d8e49a42e..a871af8421 100644 --- a/components/soc/esp32/include/soc/apb_ctrl_struct.h +++ b/components/soc/esp32/include/soc/apb_ctrl_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_APB_CTRL_STRUCT_H_ #define _SOC_APB_CTRL_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/can_struct.h b/components/soc/esp32/include/soc/can_struct.h index 3f566b135d..fd9609344d 100644 --- a/components/soc/esp32/include/soc/can_struct.h +++ b/components/soc/esp32/include/soc/can_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_CAN_STRUCT_H_ #define _SOC_CAN_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/gpio_sd_struct.h b/components/soc/esp32/include/soc/gpio_sd_struct.h index e5001c23f5..4b82be052c 100644 --- a/components/soc/esp32/include/soc/gpio_sd_struct.h +++ b/components/soc/esp32/include/soc/gpio_sd_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_GPIO_SD_STRUCT_H_ #define _SOC_GPIO_SD_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/gpio_struct.h b/components/soc/esp32/include/soc/gpio_struct.h index 46ee88229c..15038fed3f 100644 --- a/components/soc/esp32/include/soc/gpio_struct.h +++ b/components/soc/esp32/include/soc/gpio_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_GPIO_STRUCT_H_ #define _SOC_GPIO_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/hinf_struct.h b/components/soc/esp32/include/soc/hinf_struct.h index 1c2d9e3b78..8e46f5397d 100644 --- a/components/soc/esp32/include/soc/hinf_struct.h +++ b/components/soc/esp32/include/soc/hinf_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_HINF_STRUCT_H_ #define _SOC_HINF_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/host_struct.h b/components/soc/esp32/include/soc/host_struct.h index a86c2982db..6c350abfc3 100644 --- a/components/soc/esp32/include/soc/host_struct.h +++ b/components/soc/esp32/include/soc/host_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_HOST_STRUCT_H_ #define _SOC_HOST_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/i2c_struct.h b/components/soc/esp32/include/soc/i2c_struct.h index 7e7818700e..c60bb1e7c1 100644 --- a/components/soc/esp32/include/soc/i2c_struct.h +++ b/components/soc/esp32/include/soc/i2c_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_I2C_STRUCT_H_ #define _SOC_I2C_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/i2s_struct.h b/components/soc/esp32/include/soc/i2s_struct.h index 8ec3145cdc..aa92bb75fe 100644 --- a/components/soc/esp32/include/soc/i2s_struct.h +++ b/components/soc/esp32/include/soc/i2s_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_I2S_STRUCT_H_ #define _SOC_I2S_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/ledc_struct.h b/components/soc/esp32/include/soc/ledc_struct.h index 4c87dfc265..d07e059f20 100644 --- a/components/soc/esp32/include/soc/ledc_struct.h +++ b/components/soc/esp32/include/soc/ledc_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_LEDC_STRUCT_H_ #define _SOC_LEDC_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/mcpwm_struct.h b/components/soc/esp32/include/soc/mcpwm_struct.h index f41d40c644..1d5110bf8c 100644 --- a/components/soc/esp32/include/soc/mcpwm_struct.h +++ b/components/soc/esp32/include/soc/mcpwm_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_MCPWM_STRUCT_H__ #define _SOC_MCPWM_STRUCT_H__ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/pcnt_struct.h b/components/soc/esp32/include/soc/pcnt_struct.h index 8cfd4ca36e..a551835bb8 100644 --- a/components/soc/esp32/include/soc/pcnt_struct.h +++ b/components/soc/esp32/include/soc/pcnt_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_PCNT_STRUCT_H_ #define _SOC_PCNT_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/rmt_struct.h b/components/soc/esp32/include/soc/rmt_struct.h index 3fb254ad60..bc4cd7a2ec 100644 --- a/components/soc/esp32/include/soc/rmt_struct.h +++ b/components/soc/esp32/include/soc/rmt_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_RMT_STRUCT_H_ #define _SOC_RMT_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/rtc_cntl_struct.h b/components/soc/esp32/include/soc/rtc_cntl_struct.h index e203722608..17a2d18038 100644 --- a/components/soc/esp32/include/soc/rtc_cntl_struct.h +++ b/components/soc/esp32/include/soc/rtc_cntl_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_RTC_CNTL_STRUCT_H_ #define _SOC_RTC_CNTL_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/rtc_io_struct.h b/components/soc/esp32/include/soc/rtc_io_struct.h index f20ad4c2cf..d82f1bd8c0 100644 --- a/components/soc/esp32/include/soc/rtc_io_struct.h +++ b/components/soc/esp32/include/soc/rtc_io_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_RTC_IO_STRUCT_H_ #define _SOC_RTC_IO_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/sdmmc_struct.h b/components/soc/esp32/include/soc/sdmmc_struct.h index 6aa64b43cc..17b8b3f24f 100644 --- a/components/soc/esp32/include/soc/sdmmc_struct.h +++ b/components/soc/esp32/include/soc/sdmmc_struct.h @@ -16,6 +16,8 @@ #include +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/sens_struct.h b/components/soc/esp32/include/soc/sens_struct.h index 37069a9456..f572148cd1 100644 --- a/components/soc/esp32/include/soc/sens_struct.h +++ b/components/soc/esp32/include/soc/sens_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_SENS_STRUCT_H_ #define _SOC_SENS_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/slc_struct.h b/components/soc/esp32/include/soc/slc_struct.h index 3d93ceef71..55506a5b43 100644 --- a/components/soc/esp32/include/soc/slc_struct.h +++ b/components/soc/esp32/include/soc/slc_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_SLC_STRUCT_H_ #define _SOC_SLC_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/spi_struct.h b/components/soc/esp32/include/soc/spi_struct.h index a52ddf4105..3e36c81c90 100644 --- a/components/soc/esp32/include/soc/spi_struct.h +++ b/components/soc/esp32/include/soc/spi_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_SPI_STRUCT_H_ #define _SOC_SPI_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/syscon_struct.h b/components/soc/esp32/include/soc/syscon_struct.h index 42bd643d16..4fb86f42b9 100644 --- a/components/soc/esp32/include/soc/syscon_struct.h +++ b/components/soc/esp32/include/soc/syscon_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_SYSCON_STRUCT_H_ #define _SOC_SYSCON_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/timer_group_struct.h b/components/soc/esp32/include/soc/timer_group_struct.h index da9acd0c7a..6d312969d4 100644 --- a/components/soc/esp32/include/soc/timer_group_struct.h +++ b/components/soc/esp32/include/soc/timer_group_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_TIMG_STRUCT_H_ #define _SOC_TIMG_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/uart_struct.h b/components/soc/esp32/include/soc/uart_struct.h index 59b84d2afc..4efd6cf901 100644 --- a/components/soc/esp32/include/soc/uart_struct.h +++ b/components/soc/esp32/include/soc/uart_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_UART_STRUCT_H_ #define _SOC_UART_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/components/soc/esp32/include/soc/uhci_struct.h b/components/soc/esp32/include/soc/uhci_struct.h index 1c1ff0b889..543af215c4 100644 --- a/components/soc/esp32/include/soc/uhci_struct.h +++ b/components/soc/esp32/include/soc/uhci_struct.h @@ -14,6 +14,8 @@ #ifndef _SOC_UHCI_STRUCT_H_ #define _SOC_UHCI_STRUCT_H_ +#include + #ifdef __cplusplus extern "C" { #endif -- 2.40.0