cancel
Showing results for 
Search instead for 
Did you mean: 

touchgfx_printf("") in a c-File

Roman REITER
Associate III

How i can use touchgfx_printf("") in a c-File?

2 REPLIES 2
Romain DIELEMAN
ST Employee

My initial response would be no but I might be missing something "obvious" :thinking_face:. TouchGFX_printf is for the simulator only user code (so C++). But you could call it when what you are using the c file for is interacted with, I suppose this interaction is done with the model ? In what context are you trying to use it ?

/Romain

Roman REITER
Associate III

I want use TouchGFX_printf in a .h or .c (own functions), which i have includen in a .hpp. supposedly you can embed c++ functions in c code and c functions in c++ code (with extern "C")!?