3 Replies Latest reply on Aug 2, 2017 6:07 PM by cadi_1014291

    [Custom Component] Conditional souce file inclusion depending on a component option.




      So i have a custom component with several source files (.h and .c), i would like to limit the inclusion of some of this files on the projects depending of one of the component parameters.


      It's similar to how the SCB component work, depending on the chosen option (SPI, I2C, UART, etc.) the header and source files of the chosen option are included and the others header and source files are not included.


      I had read the custom component author documentation but could not find information on how to do this. Does anyone know if it's possible?




      I'm using Creator 4.1 if that helps.


      Thanks in advance