refactor(gpio): split GPIO HAL into separate component

cleaned up some includes in GPIO peripheral files
This commit is contained in:
Song Ruo Jing
2025-12-08 14:33:26 +08:00
parent c231e0e777
commit 62899cbba6
191 changed files with 377 additions and 336 deletions
+2
View File
@@ -7,6 +7,7 @@ endif()
set(srcs)
set(public_include "include")
set(priv_requires esp_pm esp_driver_gpio)
set(requires esp_hal_gpio)
if(CONFIG_SOC_SDM_SUPPORTED)
list(APPEND srcs "src/sdm.c")
endif()
@@ -14,5 +15,6 @@ endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${public_include}
PRIV_REQUIRES "${priv_requires}"
REQUIRES "${requires}"
LDFRAGMENTS "linker.lf"
)
+1 -1
View File
@@ -23,7 +23,7 @@
#include "esp_clk_tree.h"
#include "driver/gpio.h"
#include "driver/sdm.h"
#include "soc/sdm_periph.h"
#include "hal/sdm_periph.h"
#include "hal/sdm_hal.h"
#include "hal/sdm_ll.h"
#include "hal/hal_utils.h"
@@ -6,3 +6,4 @@ components/esp_driver_sdm/test_apps/sigma_delta:
depends_components:
- esp_driver_gpio
- esp_driver_sdm
- esp_hal_gpio
@@ -9,9 +9,15 @@ project(sigma_delta_test)
idf_build_get_property(elf EXECUTABLE)
if(CONFIG_COMPILER_DUMP_RTL_FILES)
set(SDM_RTL_DIRS
${CMAKE_BINARY_DIR}/esp-idf/esp_driver_sdm
${CMAKE_BINARY_DIR}/esp-idf/esp_hal_gpio
${CMAKE_BINARY_DIR}/esp-idf/hal
)
string(JOIN "," SDM_RTL_DIRS_JOINED ${SDM_RTL_DIRS})
add_custom_target(check_test_app_sections ALL
COMMAND ${PYTHON} $ENV{IDF_PATH}/tools/ci/check_callgraph.py
--rtl-dirs ${CMAKE_BINARY_DIR}/esp-idf/esp_driver_sdm/,${CMAKE_BINARY_DIR}/esp-idf/hal/
--rtl-dirs ${SDM_RTL_DIRS_JOINED}
--elf-file ${CMAKE_BINARY_DIR}/sigma_delta_test.elf
find-refs
--from-sections=.iram0.text
@@ -10,7 +10,7 @@
#include "freertos/task.h"
#include "unity.h"
#include "driver/sdm.h"
#include "soc/sdm_periph.h"
#include "hal/sdm_periph.h"
#include "esp_attr.h"
TEST_CASE("sdm_channel_install_uninstall", "[sdm]")