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.

F28335 header files written in CPP

Hi

We have the F2833x header files sprc350 written in C code. Do we have a set of files written in C++ ? Specifically we need files of the "DSP2833x_common" folder and "DSP2833x_headers" folder written in C++.

Can any body help in this regards ?

 

Regards

Pravin Angolkar

Digital FAE

New Delhi 

  

 

  •  Pravin,

    We don't get a lot of requests for C++ so we have not spent the time to develop examples in C++ and the factory team has limited C++ knowlege. 

    Having said that, all of the headers already have the extern "C"  wrapper to allow the structures to be used in either C or C++.   In addition all of the DATA_SECTION pragmas to place the structures are also in both C and C++ (in the DSP2833x_GlobalVariableDefs.c file). My thought is all that needs to be done is change the extension from .c to .cpp so the compiler knows it is a C++ file and will pull in the C++ pragmas?

    -Lori