Browse Source

Support for Arduino-like Atmel "Xplained mini" eval boards
(Xplained mini 168pb, 328p, and 328pb)

Initial work: the -pb variants are treated as mere -p chips, pending support
in the arduino compiler toolchain.

WestfW 9 years ago
parent
commit
56e2952e17

+ 1 - 0
optiboot/bootloaders/optiboot/Makefile

@@ -495,6 +495,7 @@ atmega328_pro8_isp: isp
 
 #
 # Include additional platforms
+include Makefile.atmel
 include Makefile.extras
 include Makefile.1284
 include Makefile.custom

+ 24 - 0
optiboot/bootloaders/optiboot/Makefile.atmel

@@ -0,0 +1,24 @@
+# Diecimila, Duemilanove with m168, and NG use identical bootloaders
+# Call it "atmega168" for generality and clarity, keep "diecimila" for
+# backward compatibility of makefile
+#
+xplained168pb: TARGET = $@
+xplained168pb: CHIP = atmega168
+xplained168pb:
+	$(MAKE) $(CHIP) AVR_FREQ=16000000L BAUD_RATE=57600
+	mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
+	mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst
+
+xplained328pb: TARGET = $@
+xplained328pb: CHIP = atmega328
+xplained328pb:
+	$(MAKE) $(CHIP) AVR_FREQ=16000000L BAUD_RATE=57600
+	mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
+	mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst
+
+xplained328p: TARGET = $@
+xplained328p: CHIP = atmega328
+xplained328p:
+	$(MAKE) $(CHIP) AVR_FREQ=16000000L BAUD_RATE=57600
+	mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
+	mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst

+ 6 - 0
optiboot/bootloaders/optiboot/makeall

@@ -24,3 +24,9 @@ make atmega168p
 make atmega8
 make atmega168
 make atmega328
+
+#
+# Atmel development board targets
+make xplained168pb
+make xplained328p
+make xplained328pb