aboutsummaryrefslogtreecommitdiff
path: root/config-check.h
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-07-26 18:06:29 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2015-07-26 19:27:13 +0200
commitafd694f05178c22b4f71f65143c4647ce912d980 (patch)
treebde5b59098c453a4355f63eaaabdf95f9e2679bb /config-check.h
parenta64156388fc92da1d151a1094e25d9d89240bb38 (diff)
downloadtrygvisio_soil_moisture-afd694f05178c22b4f71f65143c4647ce912d980.tar.gz
trygvisio_soil_moisture-afd694f05178c22b4f71f65143c4647ce912d980.tar.bz2
trygvisio_soil_moisture-afd694f05178c22b4f71f65143c4647ce912d980.tar.xz
trygvisio_soil_moisture-afd694f05178c22b4f71f65143c4647ce912d980.zip
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.
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