2021-09-05 20:20:36 +02:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS ./include
|
|
|
|
|
./driver/es8388
|
|
|
|
|
./driver/es8374
|
|
|
|
|
./driver/es8311
|
2024-01-08 22:49:11 +01:00
|
|
|
./driver/es8156
|
2021-09-05 20:20:36 +02:00
|
|
|
./driver/es7243
|
|
|
|
|
./driver/es7148
|
|
|
|
|
./driver/es7210
|
2024-01-08 22:49:11 +01:00
|
|
|
./driver/es7243e
|
2021-09-05 20:20:36 +02:00
|
|
|
./driver/tas5805m
|
2024-01-08 22:49:11 +01:00
|
|
|
./driver/include)
|
|
|
|
|
IF (NOT ((CONFIG_IDF_TARGET STREQUAL "esp32c3") OR (CONFIG_IDF_TARGET STREQUAL "esp32c6")))
|
|
|
|
|
list(APPEND COMPONENT_ADD_INCLUDEDIRS
|
|
|
|
|
./driver/zl38063
|
|
|
|
|
./driver/zl38063/api_lib
|
|
|
|
|
./driver/zl38063/example_apps
|
|
|
|
|
./driver/zl38063/firmware)
|
|
|
|
|
endif()
|
2021-09-05 20:20:36 +02:00
|
|
|
|
|
|
|
|
# Edit following two lines to set component requirements (see docs)
|
|
|
|
|
set(COMPONENT_REQUIRES )
|
2024-01-08 22:49:11 +01:00
|
|
|
set(COMPONENT_PRIV_REQUIRES audio_sal audio_board mbedtls esp_peripherals custom_board)
|
2021-09-05 20:20:36 +02:00
|
|
|
|
|
|
|
|
set(COMPONENT_SRCS ./audio_hal.c
|
2024-01-08 22:49:11 +01:00
|
|
|
./audio_volume.c
|
2021-09-05 20:20:36 +02:00
|
|
|
./driver/es8388/es8388.c
|
|
|
|
|
./driver/es8388/headphone_detect.c
|
|
|
|
|
./driver/es8374/es8374.c
|
|
|
|
|
./driver/es8311/es8311.c
|
2024-01-08 22:49:11 +01:00
|
|
|
./driver/es8156/es8156.c
|
2021-09-05 20:20:36 +02:00
|
|
|
./driver/es7243/es7243.c
|
|
|
|
|
./driver/es7148/es7148.c
|
|
|
|
|
./driver/es7210/es7210.c
|
2024-01-08 22:49:11 +01:00
|
|
|
./driver/es7243e/es7243e.c
|
2021-09-05 20:20:36 +02:00
|
|
|
./driver/tas5805m/tas5805m.c
|
|
|
|
|
)
|
|
|
|
|
|
2024-01-08 22:49:11 +01:00
|
|
|
IF (NOT ((CONFIG_IDF_TARGET STREQUAL "esp32c3") OR (CONFIG_IDF_TARGET STREQUAL "esp32c6")))
|
|
|
|
|
list(APPEND COMPONENT_SRCS
|
|
|
|
|
./driver/zl38063/zl38063.c
|
|
|
|
|
./driver/zl38063/api_lib/vprocTwolf_access.c
|
|
|
|
|
./driver/zl38063/api_lib/vproc_common.c
|
|
|
|
|
./driver/zl38063/example_apps/tw_hal_verify.c
|
|
|
|
|
./driver/zl38063/example_apps/tw_ldcfg.c
|
|
|
|
|
./driver/zl38063/example_apps/tw_ldfw.c
|
|
|
|
|
./driver/zl38063/example_apps/tw_ldfwcfg.c
|
|
|
|
|
./driver/zl38063/example_apps/tw_spi_access.c)
|
|
|
|
|
endif()
|
|
|
|
|
|
2021-09-05 20:20:36 +02:00
|
|
|
register_component()
|
|
|
|
|
|
2024-01-08 22:49:11 +01:00
|
|
|
IF (NOT ((CONFIG_IDF_TARGET STREQUAL "esp32c3") OR (CONFIG_IDF_TARGET STREQUAL "esp32c6")))
|
|
|
|
|
target_link_libraries(${COMPONENT_TARGET} INTERFACE "-L${CMAKE_CURRENT_LIST_DIR}/driver/zl38063/firmware")
|
|
|
|
|
target_link_libraries(${COMPONENT_TARGET} INTERFACE firmware)
|
|
|
|
|
ENDIF()
|