esp-idf/components/soc/esp32/include/soc
Michael (XIAO Xufeng) 562af8f65e global: move the soc component out of the common list
This MR removes the common dependency from every IDF components to the SOC component.

Currently, in the ``idf_functions.cmake`` script, we include the header path of SOC component by default for all components.
But for better code organization (or maybe also benifits to the compiling speed), we may remove the dependency to SOC components for most components except the driver and kernel related components.

In CMAKE, we have two kinds of header visibilities (set by include path visibility):

(Assume component A --(depends on)--> B, B is the current component)

1. public (``COMPONENT_ADD_INCLUDEDIRS``): means this path is visible to other depending components (A) (visible to A and B)
2. private (``COMPONENT_PRIV_INCLUDEDIRS``): means this path is only visible to source files inside the component (visible to B only)

and we have two kinds of depending ways:

(Assume component A --(depends on)--> B --(depends on)--> C, B is the current component)

1. public (```COMPONENT_REQUIRES```): means B can access to public include path of C. All other components rely on you (A) will also be available for the public headers. (visible to A, B)
2. private (``COMPONENT_PRIV_REQUIRES``): means B can access to public include path of C, but don't propagate this relation to other components (A). (visible to B)

1. remove the common requirement in ``idf_functions.cmake``, this makes the SOC components invisible to all other components by default.
2. if a component (for example, DRIVER) really needs the dependency to SOC, add a private dependency to SOC for it.
3. some other components that don't really depends on the SOC may still meet some errors saying "can't find header soc/...", this is because it's depended component (DRIVER) incorrectly include the header of SOC in its public headers. Moving all this kind of #include into source files, or private headers
4. Fix the include requirements for some file which miss sufficient #include directives. (Previously they include some headers by the long long long header include link)

This is a breaking change. Previous code may depends on the long include chain.
You may need to include the following headers for some files after this commit:

- soc/soc.h
- soc/soc_memory_layout.h
- driver/gpio.h
- esp_sleep.h

The major broken include chain includes:

1. esp_system.h no longer includes esp_sleep.h. The latter includes driver/gpio.h and driver/touch_pad.h.
2. ets_sys.h no longer includes soc/soc.h
3. freertos/portmacro.h no longer includes soc/soc_memory_layout.h

some peripheral headers no longer includes their hw related headers, e.g. rom/gpio.h no longer includes soc/gpio_pins.h and soc/gpio_reg.h

BREAKING CHANGE
2019-04-16 13:21:15 +08:00
..
adc_channel.h feat(global): add macros for GPIO->channel lookup 2017-09-07 10:40:25 +08:00
apb_ctrl_reg.h soc: move header files into soc component 2017-04-11 14:06:40 +08:00
apb_ctrl_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
bb_reg.h soc: define missing M, V macros for nrx, bb, fe, emac, iomux 2017-04-18 17:34:26 +08:00
boot_mode.h soc: add source code of rtc_clk, rtc_pm 2017-04-11 15:45:54 +08:00
can_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
clkout_channel.h feat(global): add macros for GPIO->channel lookup 2017-09-07 10:40:25 +08:00
cpu.h bootloader, esp32: add workaround for Tensilica erratum 572 2018-11-19 04:39:35 +00:00
dac_channel.h feat(global): add macros for GPIO->channel lookup 2017-09-07 10:40:25 +08:00
dport_access.h move esp32 chip specific includes to esp32/xxx.h 2019-03-18 17:14:05 +08:00
dport_reg.h soc: define named constants for DPORT_CPUPERIOD_SEL values 2019-02-26 17:07:59 +08:00
efuse_reg.h efuse/flash encryption: Reduce FLASH_CRYPT_CNT to a 7 bit efuse field 2019-04-03 14:07:20 +11:00
emac_ex_reg.h soc: define missing M, V macros for nrx, bb, fe, emac, iomux 2017-04-18 17:34:26 +08:00
emac_reg_v2.h update emac_reg_v2.h 2018-04-25 14:54:09 +08:00
fe_reg.h soc: define missing M, V macros for nrx, bb, fe, emac, iomux 2017-04-18 17:34:26 +08:00
frc_timer_reg.h soc: fix/update definitions related to FRC timers 2017-08-24 16:33:12 +08:00
gpio_pins.h soc: Fix check_long_hold_gpio and move def to soc 2018-06-22 09:20:27 +05:00
gpio_reg.h soc/gpio: fix description of GPIO_STRAP_REG 2017-11-03 15:49:09 +08:00
gpio_sd_reg.h soc: move header files into soc component 2017-04-11 14:06:40 +08:00
gpio_sd_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
gpio_sig_map.h soc: move header files into soc component 2017-04-11 14:06:40 +08:00
gpio_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
hinf_reg.h feat(sdio_slave): add headers for sdio slave components: slc, host, hinf 2018-05-21 23:48:33 +08:00
hinf_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
host_reg.h feat(sdio_slave): add headers for sdio slave components: slc, host, hinf 2018-05-21 23:48:33 +08:00
host_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
hwcrypto_reg.h esp32 hwcrypto: Use AES registers directly 2017-08-25 16:08:03 +10:00
i2c_reg.h soc: convert line endings to unix 2017-04-11 15:44:22 +08:00
i2c_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
i2s_reg.h soc: move header files into soc component 2017-04-11 14:06:40 +08:00
i2s_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
io_mux_reg.h soc/io_mux: make CLK_OUT fields compatible with REG_SET/GET_FIELD 2018-03-27 12:10:18 +08:00
ledc_reg.h driver(ledc): fix ledc fade API and update the register header file 2019-01-12 00:56:38 +08:00
ledc_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
mcpwm_reg.h feature: add Motor Control PWM(mcpwm) driver 2017-05-12 15:47:59 +08:00
mcpwm_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
nrx_reg.h soc: define missing M, V macros for nrx, bb, fe, emac, iomux 2017-04-18 17:34:26 +08:00
pcnt_reg.h soc: convert line endings to unix 2017-04-11 15:44:22 +08:00
pcnt_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
periph_defs.h aes/sha/mpi: Bugfix a use of shared registers. 2018-11-05 04:22:47 +00:00
pid.h soc: move header files into soc component 2017-04-11 14:06:40 +08:00
rmt_reg.h driver(rmt): Add API get rmt channel's status. 2018-11-28 07:20:45 +00:00
rmt_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
rtc_cntl_reg.h soc/rtc: restore dbg attenuation when waking from sleep 2018-04-26 18:52:46 +08:00
rtc_cntl_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
rtc_gpio_channel.h feat(global): add macros for GPIO->channel lookup 2017-09-07 10:40:25 +08:00
rtc_i2c_reg.h soc,ulp: add register definitions of RTC_I2C peripheral 2018-01-08 21:28:14 +08:00
rtc_io_reg.h soc: implement XTAL frequency detection 2017-04-24 15:29:30 +08:00
rtc_io_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
rtc.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
sdio_slave_pins.h Replace all DOS line endings with Unix 2018-07-12 19:10:37 +08:00
sdmmc_pins.h Replace all DOS line endings with Unix 2018-07-12 19:10:37 +08:00
sdmmc_reg.h sdmmc: implement partial DDR support 2018-08-30 13:11:54 +08:00
sdmmc_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
sens_reg.h driver(i2s): fix broken i2s adc mode 2018-02-07 17:17:20 +08:00
sens_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
slc_reg.h feat(sdio_slave): add headers for sdio slave components: slc, host, hinf 2018-05-21 23:48:33 +08:00
slc_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
soc_ulp.h soc,ulp: add register definitions of RTC_I2C peripheral 2018-01-08 21:28:14 +08:00
soc.h global: move the soc component out of the common list 2019-04-16 13:21:15 +08:00
spi_pins.h Replace all DOS line endings with Unix 2018-07-12 19:10:37 +08:00
spi_reg.h soc: convert line endings to unix 2017-04-11 15:44:22 +08:00
spi_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
syscon_reg.h soc: move header files into soc component 2017-04-11 14:06:40 +08:00
syscon_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
timer_group_reg.h soc: move header files into soc component 2017-04-11 14:06:40 +08:00
timer_group_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
touch_channel.h feat(global): add macros for GPIO->channel lookup 2017-09-07 10:40:25 +08:00
uart_channel.h feat(global): add macros for GPIO->channel lookup 2017-09-07 10:40:25 +08:00
uart_reg.h Fix uart fifo overflow bug 2018-01-12 14:42:54 +08:00
uart_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
uhci_reg.h soc: move header files into soc component 2017-04-11 14:06:40 +08:00
uhci_struct.h soc:Added names to anonymous register structs 2019-04-03 03:09:44 +00:00
wdev_reg.h soc: move header files into soc component 2017-04-11 14:06:40 +08:00