Abstract Version out into header file and bump version
authorMark Tearle <[email protected]>
Thu, 19 Mar 2015 14:40:01 +0000 (22:40 +0800)
committerMark Tearle <[email protected]>
Thu, 19 Mar 2015 15:30:20 +0000 (23:30 +0800)
ROM2/Makefile
ROM2/main_basic.c
ROM2/version.h [new file with mode: 0644]

index e826b4f..e9f6e0c 100644 (file)
@@ -4,7 +4,7 @@ OBJS = \
        motors.o keypad.o display_basic.o coinmech.o chime.o \
        helpers.o main_basic.o sci.o \
        vectors.o start.o romsrc.o xmodem.o mic.o
-INCLUDES = vend.h keypad.h chime.h asm.h display_basic.h ports.h types.h
+INCLUDES = vend.h keypad.h chime.h asm.h display_basic.h ports.h types.h version.h
 # debugging doesn't get compiled into the ROM image
 CFLAGS = -m68hc11 -mshort -Wall -O1 \
        -msoft-reg-count=0 -ffixed-z -g -fomit-frame-pointer
index a63c858..f48c247 100644 (file)
@@ -4,8 +4,7 @@
  * and snacks.
  */
 
-#define VERSION_STRING "X 20040625"
-
+#include "version.h"
 #include "display_basic.h"
 #include "keypad.h"
 #include "chime.h"
diff --git a/ROM2/version.h b/ROM2/version.h
new file mode 100644 (file)
index 0000000..28810e9
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef _VERSION_H_
+#define _VERSION_H_
+
+#include "vend.h"
+
+/* Snack machine ROM version */
+
+#define VERSION_STRING "Y 20150319"
+
+#endif /* _VERSION_H_ */

UCC git Repository :: git.ucc.asn.au