Guys, just tidying up some code. I have the following defined in a header file called "api_gateway.h"
#define api_system_gateway()\ \ volatile bool SystemConfiguration = false;\ \ if( (OSTCB_EXECUTING->application_mode == false) &&\ (OSTCB_EXECUTING->interrupt_mode == 0)){\ \ OSTCB_EXECUTING->application_mode = true;\ SystemConfiguration = true;\ }\ __attribute__((cleanup(api_gateway_implementation)))volatile bool SystemStatusMode = SystemConfiguration;
when I include the header file and try to use it I get #define I get, api_gateway could not be resolved?
this is how it is called:
api_system_gateway();