2,8 → 2,10 |
# MCU name |
MCU = atmega168 |
#------------------------------------------------------------------- |
HAUPT_VERSION = 0 |
NEBEN_VERSION = 14 |
VERSION_MAJOR = 0 |
VERSION_MINOR = 14 |
|
VERSION_COMPATIBLE = 8 # PC-Kompatibilität |
#------------------------------------------------------------------- |
|
# Output format. (can be srec, ihex, binary) |
10,7 → 12,7 |
FORMAT = ihex |
|
# Target file name (without extension). |
TARGET = MK3Mag_MEGA168_V$(HAUPT_VERSION)_$(NEBEN_VERSION) |
TARGET = MK3Mag_MEGA168_V$(VERSION_MAJOR)_$(VERSION_MINOR) |
|
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization. |
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.) |
18,20 → 20,10 |
|
########################################################################################################## |
# List C source files here. (C dependencies are automatically generated.) |
SRC = main.c uart.c timer0.c analog.c twislave.c |
#printf_P.c |
SRC = main.c uart.c timer0.c analog.c twislave.c led.c |
########################################################################################################## |
|
# If there is more than one source file, append them above, or modify and |
# uncomment the following: |
#SRC += foo.c bar.c |
|
# You can also wrap lines by appending a backslash to the end of the line: |
#SRC += baz.c \ |
#xyzzy.c |
|
|
|
# List Assembler source files here. |
# Make them always end in a capital .S. Files ending in a lowercase .s |
# will not be considered source files but generated files (assembler |
69,7 → 61,7 |
#CFLAGS += -std=c99 |
CFLAGS += -std=gnu99 |
|
CFLAGS += -DVERSION_HAUPTVERSION=$(HAUPT_VERSION) -DVERSION_NEBENVERSION=$(NEBEN_VERSION) |
CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_COMPATIBLE=$(VERSION_COMPATIBLE) |
|
ifeq ($(AVR_CTRL_PLATINE), 1) |
CFLAGS += -DAVR_CTRL_PLATINE=$(AVR_CTRL_PLATINE) |