Created Mon, 30 Jan 2012 10:12:37 +0000 by smitthhyy
Mon, 30 Jan 2012 10:12:37 +0000
Is there something that can be tested at compile time to know if it's a Max32 or a Uno32?
#if defined(PIC32MX795F512L) and #if defined(PIC32MX795F512) to define if it's a Max32 but no luck.
Thanks in advance.
Mon, 30 Jan 2012 16:43:50 +0000
Looks like hyou should use;
#if defined (__AVR__) : #if defined(__PIC32MX__)
(grepping through .../hardware/pic32/cores/pic32/* for "defined")
Wed, 01 Feb 2012 22:47:23 +0000
You should also see a BOARD_UNO and BOARD_MEGA defied, but I agree with the previous post that you should ifdef for the processor type to try to generalize for the family when possible.