X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/eded7ec457ef999586c66b15ada5948bddcc735c..4bc81323e51ac138e733c14eeb6f283ae706e904:/avr/Tupfile diff --git a/avr/Tupfile b/avr/Tupfile index b43a822..199b86c 100644 --- a/avr/Tupfile +++ b/avr/Tupfile @@ -1,15 +1,22 @@ include_rules -PROG = z180-stamp-avr -SRC = z180-stamp-avr.c serial.c z80-if.c +PROG = stamp-test +SRC = main.c +SRC += cli.c cli_readline.c command.c command_tbl.c +SRC += cmd_help.c cmd_echo.c cmd_mem.c cmd_boot.c +SRC += env.c xmalloc.c +SRC += timer.c con-utils.c serial.c +SRC += background.c z180-serv.c z80-if.c + SRC_Z = ../z180/hdrom.c + #TARGETS = $(PROG).elf MCU_TARGET = atmega1281 -F_CPU = 16000000UL -DEFS = -DF_CPU=$(F_CPU) -DBAUD=115200 +F_CPU = 18432000UL +DEFS = -DF_CPU=$(F_CPU) -DBAUD=115200UL -INCLUDES += ../z180 +#INCLUDES += ../z180 ############################################################################### @@ -28,13 +35,14 @@ GDB = $(TOOLCHAIN)-gdb ############################################################################### ifdef DEBUG +SRC += debug.c DEFS += -DDEBUG=2 endif CFLAGS = -g -Os CFLAGS += -mmcu=$(MCU_TARGET) CFLAGS += -std=gnu99 -CFLAGS += -Wall -Wextra -Wimplicit-function-declaration +CFLAGS += -Wall -Wextra CFLAGS += -Wredundant-decls #CFLAGS += -fno-common -ffunction-sections -fdata-sections #CFLAGS += -I $(INCLUDES)