Skip to content

Commit

Permalink
src/AUnit.h,AUnitVerbose.h: Blacklist all megaAVR, and SAMD21 boards …
Browse files Browse the repository at this point in the history
…using new ArduinoAPI (see #56, #66)
  • Loading branch information
bxparks committed Jan 17, 2021
1 parent a357682 commit 222ee46
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/AUnit.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ SOFTWARE.
#ifndef AUNIT_AUNIT_H
#define AUNIT_AUNIT_H

// Blacklist boards using new Arduino API due to incompatibilities. This
// currently includes all megaAVR boards and SAMD21 boards using arduino::samd
// >= 1.8.10. Boards using arduino:samd <= 1.8.9 or SparkFun:samd are fine.
#if defined(ARDUINO_ARCH_MEGAAVR)
#error MegaAVR not supported, https://github.com/bxparks/AUnit/issues/56
#elif defined(ARDUINO_ARCH_SAMD) && defined(ARDUINO_API_VERSION)
#error SAMD21 with arduino:samd >= 1.8.10 not supported, https://github.com/bxparks/AUnit/issues/66
#endif

#include "aunit/print64.h"
#include "aunit/Verbosity.h"
#include "aunit/Compare.h"
Expand Down
9 changes: 9 additions & 0 deletions src/AUnitVerbose.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ SOFTWARE.
#ifndef AUNIT_AUNIT_VERBOSE_H
#define AUNIT_AUNIT_VERBOSE_H

// Blacklist boards using new Arduino API due to incompatibilities. This
// currently includes all megaAVR boards and SAMD21 boards using arduino::samd
// >= 1.8.10. Boards using arduino:samd <= 1.8.9 or SparkFun:samd are fine.
#if defined(ARDUINO_ARCH_MEGAAVR)
#error MegaAVR not supported https://github.com/bxparks/AUnit/issues/56
#elif defined(ARDUINO_ARCH_SAMD) && defined(ARDUINO_API_VERSION)
#error SAMD21 with arduino:samd >= 1.8.10 not supported, see https://github.com/bxparks/AUnit/issues/66
#endif

#include "aunit/print64.h"
#include "aunit/Verbosity.h"
#include "aunit/Compare.h"
Expand Down

0 comments on commit 222ee46

Please sign in to comment.