From 5e02839b2e490cc4b95dfc71489e701d71f7438c Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Thu, 20 Dec 2012 16:50:51 -0500 Subject: [PATCH] Factor out processor and clock selection into separate menus. --- attiny/avr/boards.txt | 160 ++++++++++++++---------------------------- 1 file changed, 51 insertions(+), 109 deletions(-) diff --git a/attiny/avr/boards.txt b/attiny/avr/boards.txt index e3aae8e..2b399fe 100644 --- a/attiny/avr/boards.txt +++ b/attiny/avr/boards.txt @@ -1,119 +1,61 @@ -attiny45.name=ATtiny45 (internal 1 MHz clock) -attiny45.bootloader.low_fuses=0x62 -attiny45.bootloader.high_fuses=0xdf -attiny45.bootloader.extended_fuses=0xff -attiny45.upload.maximum_size=4096 -attiny45.build.mcu=attiny45 -attiny45.build.f_cpu=1000000L -attiny45.build.core=arduino:arduino -attiny45.build.variant=tiny8 +menu.cpu=Processor +menu.clock=Clock -attiny45-8.name=ATtiny45 (internal 8 MHz clock) -attiny45-8.bootloader.low_fuses=0xe2 -attiny45-8.bootloader.high_fuses=0xdf -attiny45-8.bootloader.extended_fuses=0xff -attiny45-8.upload.maximum_size=4096 -attiny45-8.build.mcu=attiny45 -attiny45-8.build.f_cpu=8000000L -attiny45-8.build.core=arduino:arduino -attiny45-8.build.variant=tiny8 +attiny.name=ATtiny +attiny.bootloader.tool=avrdude2 +attiny.bootloader.unlock_bits=0xff +attiny.bootloader.lock_bits=0xff -attiny45-20.name=ATtiny45 (external 20 MHz clock) -attiny45-20.bootloader.low_fuses=0xfe -attiny45-20.bootloader.high_fuses=0xdf -attiny45-20.bootloader.extended_fuses=0xff -attiny45-20.upload.maximum_size=4096 -attiny45-20.build.mcu=attiny45 -attiny45-20.build.f_cpu=20000000L -attiny45-20.build.core=arduino:arduino -attiny45-20.build.variant=tiny8 +menu.cpu.attiny.attiny45=ATtiny45 +menu.cpu.attiny.attiny45.upload.maximum_size=4096 +menu.cpu.attiny.attiny45.build.mcu=attiny45 +menu.cpu.attiny.attiny45.build.core=arduino:arduino +menu.cpu.attiny.attiny45.build.variant=tiny8 -attiny85.name=ATtiny85 (internal 1 MHz clock) -attiny85.bootloader.low_fuses=0x62 -attiny85.bootloader.high_fuses=0xdf -attiny85.bootloader.extended_fuses=0xff -attiny85.upload.maximum_size=8192 -attiny85.build.mcu=attiny85 -attiny85.build.f_cpu=1000000L -attiny85.build.core=arduino:arduino -attiny85.build.variant=tiny8 +menu.cpu.attiny.attiny85=ATtiny85 +menu.cpu.attiny.attiny85.upload.maximum_size=8192 +menu.cpu.attiny.attiny85.build.mcu=attiny85 +menu.cpu.attiny.attiny85.build.core=arduino:arduino +menu.cpu.attiny.attiny85.build.variant=tiny8 -attiny85-8.name=ATtiny85 (internal 8 MHz clock) -attiny85-8.bootloader.low_fuses=0xe2 -attiny85-8.bootloader.high_fuses=0xdf -attiny85-8.bootloader.extended_fuses=0xff -attiny85-8.upload.maximum_size=8192 -attiny85-8.build.mcu=attiny85 -attiny85-8.build.f_cpu=8000000L -attiny85-8.build.core=arduino:arduino -attiny85-8.build.variant=tiny8 +menu.cpu.attiny.attiny44=ATtiny44 +menu.cpu.attiny.attiny44.upload.maximum_size=4096 +menu.cpu.attiny.attiny44.build.mcu=attiny44 +menu.cpu.attiny.attiny44.build.core=arduino:arduino +menu.cpu.attiny.attiny44.build.variant=tiny14 -attiny85-20.name=ATtiny85 (external 20 MHz clock) -attiny85-20.bootloader.low_fuses=0xfe -attiny85-20.bootloader.high_fuses=0xdf -attiny85-20.bootloader.extended_fuses=0xff -attiny85-20.upload.maximum_size=8192 -attiny85-20.build.mcu=attiny85 -attiny85-20.build.f_cpu=20000000L -attiny85-20.build.core=arduino:arduino -attiny85-20.build.variant=tiny8 +menu.cpu.attiny.attiny84=ATtiny84 +menu.cpu.attiny.attiny84.upload.maximum_size=8192 +menu.cpu.attiny.attiny84.build.mcu=attiny84 +menu.cpu.attiny.attiny84.build.core=arduino:arduino +menu.cpu.attiny.attiny84.build.variant=tiny14 -attiny44.name=ATtiny44 (internal 1 MHz clock) -attiny44.bootloader.low_fuses=0x62 -attiny44.bootloader.high_fuses=0xdf -attiny44.bootloader.extended_fuses=0xff -attiny44.upload.maximum_size=4096 -attiny44.build.mcu=attiny44 -attiny44.build.f_cpu=1000000L -attiny44.build.core=arduino:arduino -attiny44.build.variant=tiny14 +menu.clock.attiny.internal1=1 MHz (internal) +menu.clock.attiny.internal1.bootloader.low_fuses=0x62 +menu.clock.attiny.internal1.bootloader.high_fuses=0xdf +menu.clock.attiny.internal1.bootloader.extended_fuses=0xff +menu.clock.attiny.internal1.build.f_cpu=1000000L -attiny44-8.name=ATtiny44 (internal 8 MHz clock) -attiny44-8.bootloader.low_fuses=0xe2 -attiny44-8.bootloader.high_fuses=0xdf -attiny44-8.bootloader.extended_fuses=0xff -attiny44-8.upload.maximum_size=4096 -attiny44-8.build.mcu=attiny44 -attiny44-8.build.f_cpu=8000000L -attiny44-8.build.core=arduino:arduino -attiny44-8.build.variant=tiny14 +menu.clock.attiny.internal8=8 MHz (internal) +menu.clock.attiny.internal8.bootloader.low_fuses=0xe2 +menu.clock.attiny.internal8.bootloader.high_fuses=0xdf +menu.clock.attiny.internal8.bootloader.extended_fuses=0xff +menu.clock.attiny.internal8.build.f_cpu=8000000L -attiny44-20.name=ATtiny44 (external 20 MHz clock) -attiny44-20.bootloader.low_fuses=0xfe -attiny44-20.bootloader.high_fuses=0xdf -attiny44-20.bootloader.extended_fuses=0xff -attiny44-20.upload.maximum_size=4096 -attiny44-20.build.mcu=attiny44 -attiny44-20.build.f_cpu=20000000L -attiny44-20.build.core=arduino:arduino -attiny44-20.build.variant=tiny14 +menu.clock.attiny.external8=8 MHz (external) +menu.clock.attiny.external8.bootloader.low_fuses=0xfe +menu.clock.attiny.external8.bootloader.high_fuses=0xdf +menu.clock.attiny.external8.bootloader.extended_fuses=0xff +menu.clock.attiny.external8.build.f_cpu=8000000L -attiny84.name=ATtiny84 (internal 1 MHz clock) -attiny84.bootloader.low_fuses=0x62 -attiny84.bootloader.high_fuses=0xdf -attiny84.bootloader.extended_fuses=0xff -attiny84.upload.maximum_size=8192 -attiny84.build.mcu=attiny84 -attiny84.build.f_cpu=1000000L -attiny84.build.core=arduino:arduino -attiny84.build.variant=tiny14 +menu.clock.attiny.external16=16 MHz (external) +menu.clock.attiny.external16.bootloader.low_fuses=0xfe +menu.clock.attiny.external16.bootloader.high_fuses=0xdf +menu.clock.attiny.external16.bootloader.extended_fuses=0xff +menu.clock.attiny.external16.build.f_cpu=16000000L -attiny84-8.name=ATtiny84 (internal 8 MHz clock) -attiny84-8.bootloader.low_fuses=0xe2 -attiny84-8.bootloader.high_fuses=0xdf -attiny84-8.bootloader.extended_fuses=0xff -attiny84-8.upload.maximum_size=8192 -attiny84-8.build.mcu=attiny84 -attiny84-8.build.f_cpu=8000000L -attiny84-8.build.core=arduino:arduino -attiny84-8.build.variant=tiny14 - -attiny84-20.name=ATtiny84 (external 20 MHz clock) -attiny84-20.bootloader.low_fuses=0xfe -attiny84-20.bootloader.high_fuses=0xdf -attiny84-20.bootloader.extended_fuses=0xff -attiny84-20.upload.maximum_size=8192 -attiny84-20.build.mcu=attiny84 -attiny84-20.build.f_cpu=20000000L -attiny84-20.build.core=arduino:arduino -attiny84-20.build.variant=tiny14 +menu.clock.attiny.external20=20 MHz (external) +menu.clock.attiny.external20.bootloader.low_fuses=0xfe +menu.clock.attiny.external20.bootloader.high_fuses=0xdf +menu.clock.attiny.external20.bootloader.extended_fuses=0xff +menu.clock.attiny.external20.build.f_cpu=20000000L