diff options
author | WestfW <westfw@gmail.com> | 2011-06-14 10:24:27 -0700 |
---|---|---|
committer | WestfW <westfw@gmail.com> | 2011-06-14 10:24:27 -0700 |
commit | 1f01799bbfd17eb04ec6322a123d6d26b21b09a0 (patch) | |
tree | 5cd2d68f9dcba9407d1d3f2bc11d51d1174f4f9f /bootloaders/optiboot/Makefile | |
parent | e302384d4356f7d98f57e756b2b6f2896f9c868d (diff) |
Allow the READ PARAMETER command to return our version number.
(significant size impact: 14 bytes!)
Initialized "address" to eliminate compiler warning (4 bytes!)
Add "atmega168" as a more accurate target name than "diecimila"
(keep diecimila as well for backward compatibility)
Reduce the .hex and .lst targets that are stored in source control
to the three basics: atmega8, atmega168, atmega328. The other
targets remain in the makefile and makeall, but will need to be
built from source if wanted. Which should be less of a problem
now that the source is buildable without installing crosspack.
Diffstat (limited to 'bootloaders/optiboot/Makefile')
-rw-r--r-- | bootloaders/optiboot/Makefile | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/bootloaders/optiboot/Makefile b/bootloaders/optiboot/Makefile index f6ba374..c2e03e3 100644 --- a/bootloaders/optiboot/Makefile +++ b/bootloaders/optiboot/Makefile @@ -177,8 +177,27 @@ pro16_isp: LFUSE = C6 pro16_isp: EFUSE = 04 pro16_isp: isp -# Diecimila and NG use identical bootloaders +# Diecimila, Duemilanove with m168, and NG use identical bootloaders +# Call it "atmega168" for generality and clarity, keep "diecimila" for +# backward compatibility of makefile # +atmega168: TARGET = atmega168 +atmega168: MCU_TARGET = atmega168 +atmega168: CFLAGS += '-DLED_START_FLASHES=3' '-DBAUD_RATE=115200' +atmega168: AVR_FREQ = 16000000L +atmega168: $(PROGRAM)_atmega168.hex +atmega168: $(PROGRAM)_atmega168.lst + +atmega168_isp: atmega168 +atmega168_isp: TARGET = atmega168 +# 2.7V brownout +atmega168_isp: HFUSE = DD +# Low power xtal (16MHz) 16KCK/14CK+65ms +atmega168_isp: LFUSE = FF +# 512 byte boot +atmega168_isp: EFUSE = 04 +atmega168_isp: isp + diecimila: TARGET = diecimila diecimila: MCU_TARGET = atmega168 diecimila: CFLAGS += '-DLED_START_FLASHES=3' '-DBAUD_RATE=115200' |