From afd694f05178c22b4f71f65143c4647ce912d980 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 26 Jul 2015 18:06:29 +0200 Subject: o Much improved Debug class. - Inlining all definitions to make everything shorter and easier to read. - More const so even more can be inlined. o Adding some support for ATTiny85, still more work to be done. o Removing two unused battery characteristics. o Dynamically adding battery and temperature characteristics if their pipes are defined. --- config-check.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'config-check.h') diff --git a/config-check.h b/config-check.h index f259706..45f1af0 100644 --- a/config-check.h +++ b/config-check.h @@ -35,6 +35,7 @@ * Values: * 1: prototype-a, the hand assembled PCB * 2: prototype-b, the china produced PCB + * 3: attiny85 * * No default, has to be specified in config.h */ @@ -107,4 +108,22 @@ #define DEBUG_SINK 2 #endif +/******************************************************************************* + * Board specific sanity checks + */ + +#ifdef __AVR_ATtiny85__ + +#ifdef PERSISTENT_CONFIGURATION_SUPPORT +#warning PERSISTENT_CONFIGURATION_SUPPORT is not implemented for ATtiny85-based boards +#undef PERSISTENT_CONFIGURATION_SUPPORT +#endif + +#ifdef USE_LOW_POWER_MODE +#warning USE_LOW_POWER_MODE is not implemented for ATtiny85-based boards. +#undef USE_LOW_POWER_MODE +#endif + +#endif // __AVR_ATtiny85__ + #endif -- cgit v1.2.3