comparison Makefile @ 41:5898fba6593c

Add temperature control. - Split out console stuff to cons.[ch]. Set up stdio so we can use printf etc. - Use \r\n as the line terminator consistently. - Add OWGetTemp to get temperatures from a device. - Load/save settings in EEPROM, defaults loaded from flash. Nearly feature complete except you can't edit ROM IDs without a programming tool :) (To be fixed) Needs more testing.
author darius@inchoate.localdomain
date Sun, 06 Jul 2008 22:19:53 +0930
parents 599d013ce3f2
children 50fca9562310
comparison
equal deleted inserted replaced
40:1061fdbdc44f 41:5898fba6593c
1 # 1 #
2 # $Id$ 2 # $Id$
3 # 3 #
4 4
5 PROG= testavr 5 PROG= testavr
6 SRCS= 1wire.c testavr.c 6 SRCS= 1wire.c cons.c tempctrl.c testavr.c
7 .if defined(WITHUSB) 7 .if defined(WITHUSB)
8 SRCS+= usb.c 8 SRCS+= usb.c
9 CFLAGS+=-DWITHUSB 9 CFLAGS+=-DWITHUSB
10 .endif 10 .endif
11 11
14 CFLAGS+=-O2 -Wall -gdwarf-2 14 CFLAGS+=-O2 -Wall -gdwarf-2
15 #CFLAGS+=-Wunreachable-code 15 #CFLAGS+=-Wunreachable-code
16 CFLAGS+=-DF_CPU=16000000 16 CFLAGS+=-DF_CPU=16000000
17 #CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra 17 #CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra
18 18
19 #PROGTYPE=stk500v2 19 #CFLAGS+=-DOW_DEBUG
20 #PROGPORT=/dev/cuaU0 20
21 PROGTYPE=alf 21 #PROGTYPE=alf
22 PROGPORT=/dev/ppi0 22 #PROGPORT=/dev/ppi0
23 PROGTYPE=dragon_jtag
24 PROGPORT=usb
23 PROGOPTS=-p ${PART} -c ${PROGTYPE} -E vcc,noreset -q -P ${PROGPORT} 25 PROGOPTS=-p ${PART} -c ${PROGTYPE} -E vcc,noreset -q -P ${PROGPORT}
24 26
25 .include "Makefile.avr" 27 .include "Makefile.avr"