From 87fdaaabd62268936615321bc14679b3e59e286e Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 10 Aug 2015 19:30:14 +0200 Subject: o Implementing the SoftwareSerial version of debugging. --- config-check.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'config-check.h') diff --git a/config-check.h b/config-check.h index 077d391..e33e1ad 100644 --- a/config-check.h +++ b/config-check.h @@ -18,6 +18,11 @@ #error *** Read the notes in config-check.h *** #endif +/* + * 20150725: Initial version + * 20150808: Changed values of DEBUG_SINK. + */ + /* * * Configuration Section. @@ -36,7 +41,6 @@ * 1: prototype-a, the hand assembled PCB * 2: prototype-b, the china produced PCB * 3: attiny85 - * 4: OLIMEXINO-32U4 * * No default, has to be specified in config.h */ @@ -100,15 +104,14 @@ * Selects where all debug logging will go. * * Values: - * 1: no logging, all logging is discarded - * 2: Use Serial. Uses the platforms default Serial port, usually the USB or hardware serial ports on your board. - * - * TODO: Change this to 0=no logging, 1=serial, 2=software serial + * 0: no logging, all logging is discarded + * 1: Use Serial. Uses the platforms default Serial port, usually the USB or hardware serial ports on your board. + * 2: Use Software serial */ #ifndef DEBUG_SINK // Default to Serial -#define DEBUG_SINK 2 +#define DEBUG_SINK 1 #endif /******************************************************************************* @@ -127,8 +130,8 @@ #undef USE_LOW_POWER_MODE #endif -#if DEBUG_SINK == 2 -#warning DEBUG_SINK must be 1 on ATTiny85 boards +#if DEBUG_SINK != 0 && DEBUG_SINK != 2 +#warning DEBUG_SINK must be 0 or 2 on ATTiny85 boards #undef DEBUG_SINK #define DEBUG_SINK 1 #endif -- cgit v1.2.3