feat(hal): graudate the I2S hal driver into a new component

This commit is contained in:
laokaiyao
2025-12-11 10:25:40 +08:00
parent bf9070c030
commit fd918efe43
47 changed files with 454 additions and 462 deletions
@@ -8,6 +8,6 @@ endif()
# In order for the cases defined by `TEST_CASE` to be linked into the final elf,
# the component can be registered as WHOLE_ARCHIVE
idf_component_register(SRCS ${srcs}
PRIV_REQUIRES unity esp_driver_pcnt esp_adc
PRIV_REQUIRES unity esp_driver_pcnt esp_adc esp_hal_i2s
esp_driver_dac esp_driver_gpio esp_driver_i2s esp_driver_spi
WHOLE_ARCHIVE)
@@ -18,7 +18,7 @@
#if CONFIG_IDF_TARGET_ESP32
#include "esp_private/i2s_platform.h"
// Following headers are used to test the conversion frequency
#include "soc/i2s_periph.h"
#include "hal/i2s_periph.h"
#include "driver/pulse_cnt.h"
#elif CONFIG_IDF_TARGET_ESP32S2
#include "esp_private/spi_common_internal.h"