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.

Compiler/TMS320F280049C: Pre-processor macro to detect compiler and/or platform at runtime with #ifdef or other ways

Part Number: TMS320F280049C

Tool/software: TI C/C++ Compiler

Hi there! I need to develop cross-platform code in both C and C++- Therefore, I need to detect on which platform I am running and which compiler I am using within source code. I am fine with #ifdef's - and I do use #if defined( __APPLE__ ) or #if defined( __linux__ ) regularly. My Q is: How can I detect that I am running on TI board, using no operation system at all but a bare metal MCU? Is there a preprocessor macro pre-defined that I can use? Any other way? Thank you! Best, Frank