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
+1
View File
@@ -37,5 +37,6 @@ endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${include}
PRIV_REQUIRES esp_driver_gpio esp_pm esp_mm
REQUIRES esp_hal_i2s
LDFRAGMENTS linker.lf
)
+1 -1
View File
@@ -21,7 +21,7 @@
#endif
#include "esp_log.h"
#include "soc/i2s_periph.h"
#include "hal/i2s_periph.h"
#include "soc/soc_caps.h"
#include "soc/soc_caps_full.h"
#include "hal/i2s_hal.h"
+1 -1
View File
@@ -28,7 +28,7 @@
#include "esp_private/i2s_platform.h"
#include "esp_private/lp_i2s_private.h"
#include "i2s_private.h"
#include "soc/i2s_periph.h"
#include "hal/i2s_periph.h"
#define LP_I2S_MEM_ALLOC_CAPS (MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT)
@@ -20,7 +20,7 @@
#include "unity.h"
#include "math.h"
#include "esp_rom_gpio.h"
#include "soc/i2s_periph.h"
#include "hal/i2s_periph.h"
#include "driver/i2s_std.h"
#if SOC_I2S_SUPPORTS_PDM
#include "driver/i2s_pdm.h"