X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=app%2Ftriface%2Ftriface.mk;h=9cf4fed620164094261cb4a20fd9b44574dafc89;hb=eed2974c656d4343a00dfee1bac274973b73a84f;hp=be38898e3844a8184952bfcca363cded8db1601a;hpb=56dbfedbf5978ed4b75f9b5da382c31308e12003;p=bertos.git diff --git a/app/triface/triface.mk b/app/triface/triface.mk index be38898e..9cf4fed6 100644 --- a/app/triface/triface.mk +++ b/app/triface/triface.mk @@ -7,6 +7,8 @@ # # Author: Bernardo Innocenti # +# + # Set to 1 for debug builds triface_DEBUG = 1 @@ -14,29 +16,41 @@ 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 \ - 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