From 1cc1cc5c14ec194b57ce9468b2c76c6914e7910f Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Wed, 25 Feb 2015 15:20:42 +0100 Subject: [PATCH] Makefiles: rename "MCU_TARGET" to "MCU". Cosmetic change. --- Makefile-AVR | 22 ++++++++++++---------- Makefile-example | 4 ++-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/Makefile-AVR b/Makefile-AVR index ae0316d..02a432c 100644 --- a/Makefile-AVR +++ b/Makefile-AVR @@ -40,13 +40,15 @@ # # ############################################################################## -# MCU_TARGET ?= atmega168 -# MCU_TARGET ?= atmega328p -MCU_TARGET ?= atmega644p -# MCU_TARGET ?= atmega1280 -# MCU_TARGET ?= atmega2560 -# MCU_TARGET ?= at90usb1286 -# MCU_TARGET ?= atmega32u4 +# MCU ?= atmega168 +# MCU ?= atmega328p +MCU ?= atmega644 +# MCU ?= atmega644 +# MCU ?= atmega1284p +# MCU ?= atmega1280 +# MCU ?= atmega2560 +# MCU ?= at90usb1286 +# MCU ?= atmega32u4 # CPU clock rate # F_CPU ?= 8000000L @@ -76,7 +78,7 @@ TOOLCHAIN = avr- # -c Typically stk500 or stk500v2. # -b Upload baud rate. Depends on the bootloader in # use. Not used for USB programmers. -# -p See MCU_TARGET above. +# -p See MCU above. # -P Serial port the electronics is connected to. # -C Optional, default is /etc/avrdude.conf. @@ -88,7 +90,7 @@ UPLOADER_FLAGS = -c stk500v2 # UPLOADER_FLAGS += -b 19200 # UPLOADER_FLAGS += -b 57600 UPLOADER_FLAGS += -b 115200 -UPLOADER_FLAGS += -p $(MCU_TARGET) +UPLOADER_FLAGS += -p $(MCU) # UPLOADER_FLAGS += -P COM1 # UPLOADER_FLAGS += -P /dev/ttyACM0 UPLOADER_FLAGS += -P /dev/ttyUSB0 @@ -112,7 +114,7 @@ TARGET = $(PROGRAM).hex SOURCES = $(wildcard *.c) CFLAGS += -DF_CPU=$(F_CPU) -CFLAGS += -mmcu=$(MCU_TARGET) +CFLAGS += -mmcu=$(MCU) CFLAGS += -g CFLAGS += -Wall CFLAGS += -Wstrict-prototypes diff --git a/Makefile-example b/Makefile-example index df5e7ef..1374bdf 100644 --- a/Makefile-example +++ b/Makefile-example @@ -16,7 +16,7 @@ # Override variables in the stock makefiles export F_CPU = 20000000L -export MCU_TARGET = atmega644p +export MCU = atmega644p default: avr @@ -29,7 +29,7 @@ sim: # Build Teacup for an Atmel processor avr: - @echo "----[ $(MCU_TARGET) ]----" + @echo "----[ $(MCU) ]----" @make -sf Makefile-AVR clean: