How to test for number of Ports? | Cypress Semiconductor
How to test for number of Ports?
I'd like to be able to test for the number of GPIO/Ports supported.
However, you can't do this :
/* do something with Port5 */
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?