Makefiles: rename "MCU_TARGET" to "MCU".

Cosmetic change.
This commit is contained in:
Markus Hitter 2015-02-25 15:20:42 +01:00
parent 01621cfbdb
commit 1cc1cc5c14
2 changed files with 14 additions and 12 deletions

View File

@ -40,13 +40,15 @@
# # # #
############################################################################## ##############################################################################
# MCU_TARGET ?= atmega168 # MCU ?= atmega168
# MCU_TARGET ?= atmega328p # MCU ?= atmega328p
MCU_TARGET ?= atmega644p MCU ?= atmega644
# MCU_TARGET ?= atmega1280 # MCU ?= atmega644
# MCU_TARGET ?= atmega2560 # MCU ?= atmega1284p
# MCU_TARGET ?= at90usb1286 # MCU ?= atmega1280
# MCU_TARGET ?= atmega32u4 # MCU ?= atmega2560
# MCU ?= at90usb1286
# MCU ?= atmega32u4
# CPU clock rate # CPU clock rate
# F_CPU ?= 8000000L # F_CPU ?= 8000000L
@ -76,7 +78,7 @@ TOOLCHAIN = avr-
# -c <programmer-type> Typically stk500 or stk500v2. # -c <programmer-type> Typically stk500 or stk500v2.
# -b <baudrate> Upload baud rate. Depends on the bootloader in # -b <baudrate> Upload baud rate. Depends on the bootloader in
# use. Not used for USB programmers. # use. Not used for USB programmers.
# -p <mcu type> See MCU_TARGET above. # -p <mcu type> See MCU above.
# -P <port> Serial port the electronics is connected to. # -P <port> Serial port the electronics is connected to.
# -C <config file> Optional, default is /etc/avrdude.conf. # -C <config file> Optional, default is /etc/avrdude.conf.
@ -88,7 +90,7 @@ UPLOADER_FLAGS = -c stk500v2
# UPLOADER_FLAGS += -b 19200 # UPLOADER_FLAGS += -b 19200
# UPLOADER_FLAGS += -b 57600 # UPLOADER_FLAGS += -b 57600
UPLOADER_FLAGS += -b 115200 UPLOADER_FLAGS += -b 115200
UPLOADER_FLAGS += -p $(MCU_TARGET) UPLOADER_FLAGS += -p $(MCU)
# UPLOADER_FLAGS += -P COM1 # UPLOADER_FLAGS += -P COM1
# UPLOADER_FLAGS += -P /dev/ttyACM0 # UPLOADER_FLAGS += -P /dev/ttyACM0
UPLOADER_FLAGS += -P /dev/ttyUSB0 UPLOADER_FLAGS += -P /dev/ttyUSB0
@ -112,7 +114,7 @@ TARGET = $(PROGRAM).hex
SOURCES = $(wildcard *.c) SOURCES = $(wildcard *.c)
CFLAGS += -DF_CPU=$(F_CPU) CFLAGS += -DF_CPU=$(F_CPU)
CFLAGS += -mmcu=$(MCU_TARGET) CFLAGS += -mmcu=$(MCU)
CFLAGS += -g CFLAGS += -g
CFLAGS += -Wall CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes CFLAGS += -Wstrict-prototypes

View File

@ -16,7 +16,7 @@
# Override variables in the stock makefiles # Override variables in the stock makefiles
export F_CPU = 20000000L export F_CPU = 20000000L
export MCU_TARGET = atmega644p export MCU = atmega644p
default: avr default: avr
@ -29,7 +29,7 @@ sim:
# Build Teacup for an Atmel processor # Build Teacup for an Atmel processor
avr: avr:
@echo "----[ $(MCU_TARGET) ]----" @echo "----[ $(MCU) ]----"
@make -sf Makefile-AVR @make -sf Makefile-AVR
clean: clean: