Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
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