Files
snapclient/components/audio_hal/CMakeLists.txt
CarlosDerSeher fae271186c Sync with sample stuffing (#69)
* upgrade to IDF v5.1.1
* add new synchronization implementation, use sample stuffing / removal to keep up sync
* use big DMA buffer for I2S and improve sync
* Add DAC TAS5805M as custom board
* add wifi credential reset
  o press reset button (nRESET pin) 3 times
    but wait about 1s between button presses
    the button press counter is reset 5s after boot
* Add support for PT8211 DAC (#78)
* upgrade ethernet interface to IDF v5 (#84)
* port official example of ethernet for IDF v5.x
* Fix cmake if guard for ethernet

Signed-off-by: Karl Osterseher <karli_o@gmx.at>
Co-authored-by: DerPicknicker <64746593+DerPicknicker@users.noreply.github.com>
Co-authored-by: whc2001 <ianwang0122@outlook.com>
2024-05-31 20:38:09 +02:00

56 lines
2.2 KiB
CMake

set(COMPONENT_ADD_INCLUDEDIRS ./include
./driver/es8388
./driver/es8374
./driver/es8311
./driver/es8156
./driver/es7243
./driver/es7148
./driver/es7210
./driver/es7243e
./driver/tas5805m
./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()
# Edit following two lines to set component requirements (see docs)
set(COMPONENT_REQUIRES )
set(COMPONENT_PRIV_REQUIRES audio_sal audio_board mbedtls esp_peripherals custom_board)
set(COMPONENT_SRCS ./audio_hal.c
./audio_volume.c
./driver/es8388/es8388.c
./driver/es8388/headphone_detect.c
./driver/es8374/es8374.c
./driver/es8311/es8311.c
./driver/es8156/es8156.c
./driver/es7243/es7243.c
./driver/es7148/es7148.c
./driver/es7210/es7210.c
./driver/es7243e/es7243e.c
./driver/tas5805m/tas5805m.c
)
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()
register_component()
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()