Mercurial > ~darius > hgwebdir.cgi > tempctrl
annotate Makefile @ 80:c8cd6dd74ca1
Don't call wdt_reset() in the IRQ routine - it makes the WDT useless.
Instead only call it as needed when talking to ROMs (which can take a while
if you had several).
This makes the WDT bite when a problem occurs with the RTC (still not sure
what the actual problem is though)
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Wed, 06 May 2009 08:30:45 +0930 |
parents | e3d1f56ba0c8 |
children |
rev | line source |
---|---|
74 | 1 PROG= tempctrl |
2 SRCS= 1wire.c cons.c tempctrl.c main.c ds1307.c | |
14 | 3 |
24 | 4 MCU= atmega32 |
5 PART= m32 | |
36
e40e919721b0
Conditionalise USB support, use DWARF debugging as AVR studio groks
darius
parents:
24
diff
changeset
|
6 CFLAGS+=-O2 -Wall -gdwarf-2 |
e40e919721b0
Conditionalise USB support, use DWARF debugging as AVR studio groks
darius
parents:
24
diff
changeset
|
7 #CFLAGS+=-Wunreachable-code |
24 | 8 CFLAGS+=-DF_CPU=16000000 |
9 #CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra | |
36
e40e919721b0
Conditionalise USB support, use DWARF debugging as AVR studio groks
darius
parents:
24
diff
changeset
|
10 |
41 | 11 #CFLAGS+=-DOW_DEBUG |
12 | |
13 #PROGTYPE=alf | |
14 #PROGPORT=/dev/ppi0 | |
15 PROGTYPE=dragon_jtag | |
16 PROGPORT=usb | |
39 | 17 PROGOPTS=-p ${PART} -c ${PROGTYPE} -E vcc,noreset -q -P ${PROGPORT} |
18 | |
2 | 19 .include "Makefile.avr" |