This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DSPLink and Common Header Files

I am slowly wading through the DSPLink examples for Linux. I've noticed that DSP code and GPP code need to agree on how to communicate to each other.  They must use the same constants for DSPLink configuration and the same structures definitions. Yet the DSPLink examples and helloDSP do not use a common header file. The DSP code and GPP code each use their own definitions. That would seem to be a major maintenance nightmare. The two sides could easily get out of sync. So...I'll make a couple suggestions.

- DSPLink examples and helloDSP should use common header file between the GPP and DSP side.

- DSPLink absolutely depends on unoptimized packed structures that have not been reordered by the compiler. Pragmas should be added to ensure that. The lack of proper marshalling and unmarshalling restricts DSPLink to processors with the same endianess, register width, alignment requirements, compiler behaviour, etc.

- Consolidate and make consistent all the TI types. Most types are the same but I have encountered the "char" type as "Char" on the DSP side and "Char8" on the GPP side. I guess using "stdint.h" is out of th question.