diff options
Diffstat (limited to 'avr/Tupfile')
-rw-r--r-- | avr/Tupfile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/avr/Tupfile b/avr/Tupfile index d73db12..331c11f 100644 --- a/avr/Tupfile +++ b/avr/Tupfile @@ -25,9 +25,19 @@ SRC_Z = ../z180/hdrom.c #TARGETS = $(PROG).elf -MCU_TARGET = atmega1281 +ifdef MCU + MCU_TARGET = @(MCU) +else + MCU_TARGET = atmega1281 +endif +ifeq ($(MCU_TARGET),atmega1281) + DEFS += -DMCU_STRING=\"ATmega1281\" +else + DEFS += -DMCU_STRING=\"ATmega2561\" +endif + F_CPU = 18432000UL -DEFS = -DF_CPU=$(F_CPU) +DEFS += -DF_CPU=$(F_CPU) INCLUDES += -I$(TOP)/include |