Replacing all C++ codes in touchgfx with C
I am wondering if it's possible to replace all the C++ codes in the gui folder, that is, View.cpp, presenter.cpp & model.cpp with C codes instead?
Would this result in a conflict with the other files in the generated folder if I leave them as .cpp? I understand I should never edit files in the generated folder as they are from touchgfx but files in gui folder, the user can edit. Has anyone try to write pure C in these files and resulted in working?
The reason why I want to change to C is because my boss told me that with C++ there are some issues in regards to DMA performance and other functionalities. Somewhere down the line when the compiler translate C++ to assembly code, there are some issues that prevent DMA from working reliably. He told me that from time to time DMA would randomly stop working. Moreover, with C++ it's harder to read in the assembly code as there are parent and child structure as opposed to C which is much easier to read.
Ideally we want pure C for our application. If this cannot be achieved with touchgfx, then another alternative is to return to STemWin but I have been told by ST support before to not use STemWin as it is no longer supported or part of SEGGER, which is not possible to get support from.
