#
# Author: Bernardo Innocenti <bernie@develer.com>
#
-# $Log$
-# Revision 1.3 2006/06/12 21:37:02 marco
-# implemented some commands (ver and sleep)
-#
-# Revision 1.2 2006/06/01 12:29:21 marco
-# Add first simple protocol command (version request).
-#
-# Revision 1.1 2006/05/18 00:41:47 bernie
-# New triface devlib application.
-#
#
# Our target application
TRG += triface
+triface_hfuse = 0x88
+triface_lfuse = 0xff
+triface_efuse = 0xff
+triface_lock = 0x2f
triface_CSRC = \
app/triface/triface.c \
app/triface/protocol.c \
- drv/timer.c \
- drv/ser.c \
- cpu/avr/drv/ser_avr.c \
- mware/formatwr.c \
- mware/hex.c \
- mware/hashtable.c \
- mware/readline.c \
- mware/parser.c \
-
-# drv/buzzer.c
-
-triface_PCSRC += mware/formatwr.c
-
-#triface_CFLAGS = -O3 -D'ARCH=0' -Iapp/triface/hw -Iapp/triface
-triface_CFLAGS = -O0 -D'ARCH=0' -Iapp/triface/hw -Iapp/triface -Icpu/avr
-triface_MCU = atmega128
+ app/triface/hw/hw_adc.c \
+ bertos/drv/timer.c \
+ bertos/drv/ser.c \
+ bertos/drv/buzzer.c \
+ bertos/cpu/avr/drv/ser_avr.c \
+ bertos/cpu/avr/drv/sipo.c \
+ bertos/mware/formatwr.c \
+ bertos/mware/hex.c \
+ bertos/mware/hashtable.c \
+ bertos/mware/readline.c \
+ bertos/mware/parser.c \
+ bertos/mware/event.c \
+ bertos/kern/kfile.c \
+ bertos/net/keytag.c \
+ #
+
+triface_PCSRC += bertos/mware/formatwr.c
+
+
+triface_CFLAGS = -O2 -D'ARCH=0' -fno-strict-aliasing -Iapp/triface -Ibertos/cpu/avr
+triface_LDFLAGS = -Wl
+
+triface_MCU = atmega64
+triface_CROSS = avr-
# Debug stuff
ifeq ($(triface_DEBUG),1)
triface_CFLAGS += -D_DEBUG
- triface_PCSRC += drv/kdebug.c
+ triface_PCSRC += bertos/drv/kdebug.c
endif