Hi Jan, The CODEC2_SRCS variable in https://github.com/drowe67/codec2/blob/main/stm32/CMakeLists.txt#L150 is probably a good starting point for anything STM32-based. You'll also want to define some build variables (at minimum the first line of below minus "add_definitions", but depending on what Codec2 modes you need some or all of the second as well):
add_definitions(-DSTM32F40_41xxx -DCORTEX_M4 -D__EMBEDDED__) add_definitions(-DFREEDV_MODE_EN_DEFAULT=0 -DFREEDV_MODE_1600_EN=1 -DFREEDV_MODE_700D_EN=1 -DFREEDV_MODE_700E_EN=1 -DCODEC2_MODE_EN_DEFAULT=0 -DCODEC2_MODE_1300_EN=1 -DCODEC2_MODE_700C_EN=1) Hope this helps! Thanks, -Mooneer K6AQ On Wed, Dec 13, 2023 at 12:19 AM Jan Ropek <ropek...@gmail.com> wrote: > > Hello everyone, I might get thrown out for asking this, but I want to > import CODEC2 libraries into my STM32 project (created in CubeIde) - just > the encoding and decoding, nothing else like FreeDV or other things. But > I'm quite lost about which files to import and which not to. Is there a > manual on which files to use? Or should I just try brute force? I assume I > need to use some of these files from > https://github.com/drowe67/codec2/tree/main/src plus the memtools from > here https://github.com/drowe67/codec2/tree/main/stm32/src, right? > > Thank you very much. Jan. > _______________________________________________ > Freetel-codec2 mailing list > Freetel-codec2@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freetel-codec2 >
_______________________________________________ Freetel-codec2 mailing list Freetel-codec2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freetel-codec2