X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=app%2Ftriface%2Ftriface.mk;h=f208dfa33bfb0dd429bd4110d477f92f0c97f7be;hb=6b7a2e7b20bc7fe05a61c17d6d96eb70c67a09c9;hp=c1d095dccef8eb111165a11964103468a2a6af9f;hpb=304ab6d368e046801f9c6bab326bbb27f78cb875;p=bertos.git diff --git a/app/triface/triface.mk b/app/triface/triface.mk old mode 100755 new mode 100644 index c1d095dc..f208dfa3 --- a/app/triface/triface.mk +++ b/app/triface/triface.mk @@ -5,20 +5,9 @@ # # Makefile fragment for DevLib triface application. # -# Author: Bernardo Innocenti +# Author: Bernie Innocenti # -# $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. -# -# - # Set to 1 for debug builds triface_DEBUG = 1 @@ -26,29 +15,58 @@ triface_DEBUG = 1 # 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 \ - drv/ser_avr.c \ - mware/formatwr.c \ - mware/hex.c \ - mware/hashtable.c \ - mware/readline.c \ - mware/parser.c \ + 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/struct/hashtable.c \ + bertos/mware/readline.c \ + bertos/mware/parser.c \ + bertos/mware/event.c \ + bertos/kern/kfile.c \ + bertos/net/keytag.c \ + # -# drv/buzzer.c +triface_PCSRC += bertos/mware/formatwr.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 -triface_MCU = atmega128 +triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -fno-strict-aliasing -Iapp/triface -Ibertos/cpu/avr +triface_LDFLAGS = -Wl -# Debug stuff -ifeq ($(triface_DEBUG),1) - triface_CFLAGS += -D_DEBUG - triface_PCSRC += drv/kdebug.c -endif +triface_MCU = atmega64 +triface_CROSS = avr- + +# Set to 1 for debug builds +boot_DEBUG = 0 + +# Our target application +TRG += boot +boot_MCU = atmega64 +boot_CSRC = \ + app/triface/boot/main.c \ + bertos/net/xmodem.c \ + bertos/drv/ser.c \ + bertos/cpu/avr/drv/ser_avr.c \ + bertos/cpu/avr/drv/flash_avr.c \ + bertos/drv/timer.c \ + bertos/algo/crc.c \ + bertos/mware/hex.c \ + bertos/kern/kfile.c \ + # +boot_CROSS = avr- +boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -Iapp/triface/boot -Ibertos/cpu/avr +boot_CFLAGS = -Os -mcall-prologues +boot_LDSCRIPT = app/triface/boot/boot.ld +boot_LDFLAGS = -Wl,--relax