summaryrefslogtreecommitdiffstats
path: root/firmware/Makefile
diff options
context:
space:
mode:
authorcpldcpu <cpldcpu@gmail.com>2014-03-16 07:11:35 +0100
committercpldcpu <cpldcpu@gmail.com>2014-03-16 07:11:35 +0100
commitc6fd947a101dfc5f0cf021b4892d00abaa9fa252 (patch)
treefe7fe18b4e4badf17362a47c07cd50258ad3c638 /firmware/Makefile
parentd344c1f50ed8c0597f8f1b00f7f5b4afb0ef5da3 (diff)
downloadmicronucleus-c6fd947a101dfc5f0cf021b4892d00abaa9fa252.tar.gz
micronucleus-c6fd947a101dfc5f0cf021b4892d00abaa9fa252.tar.bz2
micronucleus-c6fd947a101dfc5f0cf021b4892d00abaa9fa252.zip
firmware: adding ATtiny841
Diffstat (limited to 'firmware/Makefile')
-rw-r--r--firmware/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index da91312..e597ca3 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -6,9 +6,10 @@
# Copyright: (c) 2007 by OBJECTIVE DEVELOPMENT Software GmbH
# License: GNU GPL v2 (see License.txt)
-#CONFIG ?= t85_default
+CONFIG ?= t85_default
#CONFIG ?= t85_aggressive
-CONFIG ?= t841_default
+#CONFIG ?= t841_default
+#CONFIG ?= t167_default
###############################################################################
# Configure the following variables according to your AVR.
@@ -28,7 +29,7 @@ AVRDUDE = avrdude $(PROGRAMMER) -p $(DEVICE)
CC = avr-gcc
# Options:
-CFLAGS = -I. -g2 -Wall -Os
+CFLAGS = -I. -g2 -Os # -Wall
CFLAGS += -I$(CONFIGPATH) -mmcu=$(DEVICE) -DF_CPU=$(F_CPU) -DBOOTLOADER_ADDRESS=0x$(BOOTLOADER_ADDRESS)
CFLAGS += -nostartfiles -ffunction-sections -fdata-sections -fpack-struct -fno-inline-small-functions -fno-move-loop-invariants -fno-tree-scev-cprop
@@ -76,6 +77,7 @@ main.bin: $(OBJECTS)
@$(CC) $(CFLAGS) -o main.bin $(OBJECTS) $(LDFLAGS)
main.hex: main.bin
+ @echo Building Micronucleus configuration: $(CONFIG)
@rm -f main.hex main.eep.hex
@avr-objcopy -j .text -j .data -O ihex main.bin main.hex
@echo Size of sections: