cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

Anonymous
Not applicable

Hi,

   

I'd like to be able to test for the number of GPIO/Ports supported.

   

However, you can't do this :

   

#ifdef PRT5DR
  /* do something with Port5 */
#endif

   

because PRT5DR is declare as a BYTE variable and not a "#define".

   

Is there any way to determine dynamically (during compile time) what Pins/Ports are supported?

   

thanks,

   

Tom Moxon

0 Likes
3 Replies