X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Ftriface%2Ftriface.mk;h=7f3947245946c1a54f3798efafebb513094b801d;hb=e056d82a6c6586b6abc7671089208404034bd400;hp=430c421fac60f215d95d9cf5f6c03d08225b7b8e;hpb=066e5c4216d6003d84242f7de768edc581c24348;p=bertos.git diff --git a/examples/triface/triface.mk b/examples/triface/triface.mk index 430c421f..7f394724 100644 --- a/examples/triface/triface.mk +++ b/examples/triface/triface.mk @@ -17,7 +17,7 @@ TRG += triface CPU = atmega1281 BOOT_ADDR_START = 0x1E000 -triface_CROSS = avr- +triface_PREFIX = avr- ifeq ($(CPU), atmega1281) triface_hfuse = 0x98 @@ -40,8 +40,8 @@ triface_CSRC = \ bertos/drv/timer.c \ bertos/drv/ser.c \ bertos/drv/buzzer.c \ + bertos/drv/sipo.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 \ @@ -55,7 +55,7 @@ triface_CSRC = \ triface_PCSRC += bertos/mware/formatwr.c -triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -fno-strict-aliasing -Iexamples/triface -Ibertos/cpu/avr +triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -D'CPU_FREQ=(14745600UL)' -fno-strict-aliasing -Iexamples/triface -Ibertos/cpu/avr triface_LDFLAGS = -Wl @@ -77,8 +77,8 @@ boot_CSRC = \ bertos/mware/hex.c \ bertos/kern/kfile.c \ # -boot_CROSS = avr- -boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -Iexamples/triface/boot -Ibertos/cpu/avr +boot_PREFIX = avr- +boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -D'CPU_FREQ=(14745600UL)' -Iexamples/triface/boot -Ibertos/cpu/avr boot_CFLAGS = -Os -mcall-prologues boot_LDFLAGS = -Wl,--relax -Wl,--section-start=.text=$(BOOT_ADDR_START)