view 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
line wrap: on
line source

PROG=	tempctrl
SRCS=	1wire.c cons.c tempctrl.c main.c ds1307.c

MCU=	atmega32
PART=	m32
CFLAGS+=-O2 -Wall -gdwarf-2
#CFLAGS+=-Wunreachable-code
CFLAGS+=-DF_CPU=16000000
#CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra

#CFLAGS+=-DOW_DEBUG

#PROGTYPE=alf
#PROGPORT=/dev/ppi0
PROGTYPE=dragon_jtag
PROGPORT=usb
PROGOPTS=-p ${PART} -c ${PROGTYPE} -E vcc,noreset -q -P ${PROGPORT}

.include "Makefile.avr"