aboutsummaryrefslogtreecommitdiff
path: root/config-check.h
diff options
context:
space:
mode:
Diffstat (limited to 'config-check.h')
-rw-r--r--config-check.h19
1 files changed, 19 insertions, 0 deletions
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