Rename CLOCK_FREQ macro to CPU_FREQ: now clock frequency has to be set in the makefile.
[bertos.git] / examples / triface / triface.mk
index 430c421fac60f215d95d9cf5f6c03d08225b7b8e..7f3947245946c1a54f3798efafebb513094b801d 100644 (file)
@@ -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)