I am working on an audio project that uses a custom PCB with the ESP32-S3.
ADF v2.7 is installed. I used the example "play_mp3_control". Project does compile.
Now I need to add my own components (for example it is called esp-serial) to expand the functionality. Normally when working with the IDF that is not a big deal: add a components folder, git clone your component inside there including a cmakelist like the following and thats it.
Code: Select all
idf_component_register(
SRCS
"esp-serial.c"
INCLUDE_DIRS
""
REQUIRES
"driver"
)
I naturally assumed that it would work in the same way with the ADF.
However, the structure of the cmakelist in main is completely different (idf_component_register is not used):
Code: Select all
set(COMPONENT_SRCS ./play_mp3_control_example.c)
set(COMPONENT_ADD_INCLUDEDIRS "")
set(COMPONENT_EMBED_TXTFILES music-16b-2c-44100hz.mp3)
register_component()
Code: Select all
set(COMPONENT_REQUIRES esp-serial)
So the question is, how do I add a component to the components folder and use it in the main file?
Kind regards
Markus