Hi Farhan, 1. There are a few functions that you'll need to implement, some of which involve memory allocation. Another example you can check out is starting from line 383 of https://github.com/tmiw/ezDV/blob/main/firmware/main/audio/FreeDVTask.cpp#L383 (which just calls the ESP32 malloc/free, but you could implement your own allocator if you'd like). 2. You should be able to just compile and link the entire Codec2 library; the linker will figure out what to not include in the final build image. 3. __EMBEDDED__ is the most important one, and for additional performance you can try __REAL__ too. Example CMake invocation: https://github.com/tmiw/ezDV/blob/main/firmware/main/CMakeLists.txt#L98
Thanks, -Mooneer K6AQ On Sat, Oct 19, 2024 at 7:46 PM Ashhar Farhan <farhan...@gmail.com> wrote: > I am looking to build the codec2 on rp2350 which now has float support. I > went through the git repo with the stm32 files as well. > I would like someone to tell me > 1. If there is a pure C implementation that works without os specific > calls like malloc() et al. > 2. What are the minimal set of files I will need to implement codec2_code > and codec2_decode functions? > 3. Are there any #defines that are architecture specific? > Years ago, I made the first port of speex and GSM 6.10 to ARM, so though > rusty, I know a codebook from an LPC. I have a working knowledge of DSP. > Thanks for your help, > - Farhan, VU2ESE > > _______________________________________________ > 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