X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Ftriface%2Ftriface.mk;h=7f3947245946c1a54f3798efafebb513094b801d;hb=7d1d6ad3a9bd6b04a7231a9fbaf6be608f5968ea;hp=3b0ae2836cc72309ffa6b8531084db5576a414e4;hpb=9834fd2d0871aa31dc02263bcc3f4f9446298d58;p=bertos.git diff --git a/examples/triface/triface.mk b/examples/triface/triface.mk index 3b0ae283..7f394724 100644 --- a/examples/triface/triface.mk +++ b/examples/triface/triface.mk @@ -15,14 +15,15 @@ triface_DEBUG = 1 # Our target application TRG += triface CPU = atmega1281 +BOOT_ADDR_START = 0x1E000 -triface_CROSS = avr- +triface_PREFIX = avr- ifeq ($(CPU), atmega1281) triface_hfuse = 0x98 triface_lfuse = 0x3d triface_efuse = 0x7f -triface_lock = 0xff +triface_lock = 0x2f else triface_hfuse = 0x88 triface_lfuse = 0xff @@ -39,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 \ @@ -54,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 @@ -76,8 +77,9 @@ 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_LDSCRIPT = examples/triface/boot/boot.ld -boot_LDFLAGS = -Wl,--relax +boot_LDFLAGS = -Wl,--relax -Wl,--section-start=.text=$(BOOT_ADDR_START) + +