From: Mark Tearle Date: Thu, 19 Mar 2015 14:40:01 +0000 (+0800) Subject: Abstract Version out into header file and bump version X-Git-Tag: ROMY~1 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=e32e95e05f80aa8a35f768af4b2b0f0aa92d362a;p=uccvend-snackrom.git Abstract Version out into header file and bump version --- diff --git a/ROM2/Makefile b/ROM2/Makefile index e826b4f..e9f6e0c 100644 --- a/ROM2/Makefile +++ b/ROM2/Makefile @@ -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 diff --git a/ROM2/main_basic.c b/ROM2/main_basic.c index a63c858..f48c247 100644 --- a/ROM2/main_basic.c +++ b/ROM2/main_basic.c @@ -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 index 0000000..28810e9 --- /dev/null +++ b/ROM2/version.h @@ -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_ */