Carlos, open some Cypress component files (*.h, *.c, *.v), e.g. Timer, and there are conditional compilation constants for PSoC4, 5, etc.
I did open the PWM component, it also have 3 implementations, but the macros you point out are for code generation, my doubt is on how Creator choose the right Schematic Implementation of the component based on the device selected on the project, in the image i did attach there you can see 3 folders, each one with a different schematic implementation based on PSoC 3, 4, and 5LP Architectures.
Hope i'm explaning well my doubt, english is not my language and i write the sentences as if it's spanish :D
Thanks for the help
1 of 1 people found this helpful
afaik in the beginning of creating a new component you are asked whether it is a generic component or family specific. This would result in writing (more: copying) the component to implement it for different PSoCs (3,4,5)
Hi Bob, yes i was forgetting Creator allow me to choose the specific Architecture, Family and Device i will create the component for.
Just for test i start creating a Library, then Add Component Item, give it a name and change the Architecture and Family accordingly, design the Schematic Implementation, and then right-clic on the component name, choose Add Component Item and change the Architecture and Family, did this several times with multiple PSoC Families (see image below):
This solves my question partially, still have to test the component in projects with different PSoC Devices to see what implementation is chosen, will post the results.
Thanks odissey and Bob for the help, customer support on the forum do PSoC Rocks even more :D