Anonymous
Not applicable
Sep 11, 2011
09:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 11, 2011
09:33 PM
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
3 Replies