Permalink
Browse files

v returns MCU version from Makefile

  • Loading branch information...
1 parent c4b4530 commit 5f844e33ccd02cf04f3340c074953e8c203db277 WardCunningham committed Jul 11, 2010
Showing with 7 additions and 0 deletions.
  1. +1 −0 Makefile
  2. +6 −0 txtzyme.c
View
@@ -121,6 +121,7 @@ CSTANDARD = -std=gnu99
# Place -D or -U options here for C sources
CDEFS = -DF_CPU=$(F_CPU)UL
+CDEFS += -DMCU=$(MCU)
# Place -D or -U options here for ASM sources
View
@@ -211,6 +211,12 @@ void parse(const char *buf) {
case 's':
x = analogRead(x);
break;
+ case 'v':
+ #define QUOTEME_(x) #x
+ #define QUOTEME(x) QUOTEME_(x)
+ send_str(PSTR(QUOTEME(MCU)));
+ send_str(PSTR("\r\n"));
+ break;
}
}
}

0 comments on commit 5f844e3

Please sign in to comment.