Hi,
Before, I could change the macros and use the macros to select different boards. I could define any macro in the Makefile. .don’t know how to do it with mbed studio. Json file has configuration but how should you define your custom macro?
How should I do or how to detect which HW is used in Mbed Studio so a specific header will be included?
The code I have supports different boards, based on the target it should choose the correct header.
The above if processor is failing and it doesn’t select the correct header file when I compile for a specific target defined by the MBED studio target selection.
thanks.
This is best option to do a customatizion based on target selection without any special attention from your side.
However if you still want to use a custom macro, then you can do it via mbed_app.json like below.