Part Number: TMS320F28377S
Other Parts Discussed in Thread: C2000WARE
Dear community,
My question: Is there a header file to include or recommended alternative way to utilise the memcpy_fast_far() function in the C2000Ware FPU library in my code?
I am developing some code which uses memcpy_fast_far() to access data in SDRAM (via EMIF). I notice in the example project (c2000ware\device_support\f2837xs\examples\cpu1\emif1_16bit_sdram_far\cpu01) that there are three files in addition to the main code, namely fpu_vector.h, fpu_types.h and memcpy_fast_far.asm.
I can see files with the same name in the FPU library of C2000Ware, so to avoid having manual copies of library files in my project directory I thought it would be better to reference the ones in the FPU library.
In doing so however, I notice that while memcpy_fast_far.asm is in the FPU library(c2000ware\libraries\dsp\FPU\c28\source\fpu32\utility), the fpu_vector.h in the FPU library (c2000ware\libraries\dsp\FPU\c28\include\fpu32\fpu_vector.h) does not include a function prototype for it. I cannot immediately see a header file in the fpu library with a function prototype for it.
I can manually add the line
extern void memcpy_fast_far(volatile void* dst, volatile const void* src, uint16_t N);
to my code which works fine, but I'm not sure if that's the correct way of doing it.
Many thanks,
Alex