From: Bernard Blackham Date: Fri, 15 Aug 2003 15:12:45 +0000 (+0000) Subject: minor tweaks X-Git-Tag: ROMW~61 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=35d3d7f73fa94eb2418a8be2995252e1f3b8441a;p=uccvend-snackrom.git minor tweaks --- diff --git a/ROM2/Makefile b/ROM2/Makefile index 672ee38..c75177c 100644 --- a/ROM2/Makefile +++ b/ROM2/Makefile @@ -6,7 +6,7 @@ OBJS = \ vectors.o start.o INCLUDES = vend.h keypad.h chime.h asm.h display_basic.h ports.h types.h -CFLAGS = -O3 -m68hc11 -mshort -Wall -Os -g0 \ +CFLAGS = -O3 -m68hc11 -mshort -Wall -Os \ -msoft-reg-count=0 -ffixed-z LDFLAGS = -m68hc11 -mshort -Wl,-m,m68hc11elfb \ diff --git a/ROM2/main_basic.c b/ROM2/main_basic.c index e4709c2..36ace96 100644 --- a/ROM2/main_basic.c +++ b/ROM2/main_basic.c @@ -90,6 +90,7 @@ void give_change() { coin_cost(cost); send_ack(); } + void send_keypress(u8 key) { /* send a packet of the form KX with X being the key, or R for reset */ wait_for_tx_free();