diff --git a/components/soc/CMakeLists.txt b/components/soc/CMakeLists.txt index 501ced183c..765cde298b 100644 --- a/components/soc/CMakeLists.txt +++ b/components/soc/CMakeLists.txt @@ -14,9 +14,15 @@ endif() set(includes "include" "${target_folder}") if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target_folder}/include") + # miscellaneous headers, like definitions, man-made register headers, wrappers, etc. list(APPEND includes "${target_folder}/include") endif() +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target_folder}/register") + # register headers that generated by script from CSV + list(APPEND includes "${target_folder}/register") +endif() + if(target STREQUAL "esp32") list(APPEND srcs "${target_folder}/dport_access.c") endif() diff --git a/components/soc/README.md b/components/soc/README.md index 6e6d4b127c..c95307a0ec 100644 --- a/components/soc/README.md +++ b/components/soc/README.md @@ -7,4 +7,8 @@ The `soc` component provides hardware description for targets supported by ESP-I - `xxx_channel.h` - definitions for hardware with multiple channels - `xxx_caps.h` - features/capabilities of the hardware - `xxx_pins.h` - pin definitions - - `xxx_periph.h/*.c` - includes all headers related to a peripheral; declaration and definition of IO mapping for that hardware \ No newline at end of file + - `xxx_periph.h/*.c` - includes all headers related to a peripheral; declaration and definition of IO mapping for that hardware + +Specially, the `xxx_reg.h` and `xxx_struct.h` headers that generated by script are under `register/soc` folder. Please DO NOT **add** other manual coded files under this folder. + +For other soc headers that are used as wrapper, definition, signaling, mapping or manual coded registers, please add them under `include/soc` folder. diff --git a/components/soc/esp32/register/soc/.gitkeep b/components/soc/esp32/register/soc/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/components/soc/esp32c2/register/soc/.gitkeep b/components/soc/esp32c2/register/soc/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/components/soc/esp32c3/register/soc/.gitkeep b/components/soc/esp32c3/register/soc/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/components/soc/esp32c5/register/soc/.gitkeep b/components/soc/esp32c5/register/soc/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/components/soc/esp32c6/register/soc/.gitkeep b/components/soc/esp32c6/register/soc/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/components/soc/esp32c61/register/soc/.gitkeep b/components/soc/esp32c61/register/soc/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/components/soc/esp32h2/register/soc/.gitkeep b/components/soc/esp32h2/register/soc/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/components/soc/esp32p4/register/soc/.gitkeep b/components/soc/esp32p4/register/soc/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/components/soc/esp32s2/register/soc/.gitkeep b/components/soc/esp32s2/register/soc/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/components/soc/esp32s3/register/soc/.gitkeep b/components/soc/esp32s3/register/soc/.gitkeep new file mode 100644 index 0000000000..e69de29bb2