Example

Suppose, there is a configuration named, Testing case. You can use a component and part of our code using the component only in the Testing case configuration. Then you can make the testing case configuration active. After the successful code generation, the Cpu.h file contains the following definition:

/* Active configuration define symbol */ 
  
#define PEcfg_Testingcase 1 
  
Add the following lines:
 ... 

#ifdef PEcfg_TestingCase 

Component_MethodCall(...); 

#endif 

...