I think you did the CB part right.
But you might need to change
#include UART_CONFIG_H // Symbol to be defined via compiler -D option
To
#include "UART_CONFIG_H" // Symbol to be defined via compiler -D option
If the above fails try defining in CB as
UART_CONFIG_H="\"uart_config.h\""
Tim S.
Found example code that worked for what you wanted.
In CB I have this set
Edit: The CB Define can also be done without the double quotes as in
and it still works.
The program code had this below.
#include <stdio.h>
#define STRINGIFY(X) STRINGIFY2(X)
#define STRINGIFY2(X) #X
#include STRINGIFY(INCLUDE_FILE)
int main()
{
printf("Hello world!\n");
return 0;
}