#ifdef WEAK#define ARM_CORTEX#endif
#if defined(__arm__) // Arduino Due Board follows#elif defined(__AVR__) // Other AVR based Boards follows#else#error Architecture or board not supported.#endif
Using "#if defined(__arm__)" will also match to Teensy 3.0, Leaflabs Maple, and all other ARM-based boards that are created in the future.Perhaps "#if defined(__SAM3X8E__)" would be a better check for Due?
And what would be a suitable check for Teensy 3.0?
Hi all, I'm updating my AtomicBlock library for the Due, the update contains versions for 'ARM' and the 'Cortex M3' variant. However I can't find any defines to conditionally decide which to use.Is there a macro like _TARGET_ARCH_xx or similar?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16