From 1668039101ddee651f9b8e9b763134e0a5aebf59 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 7 Dec 2012 18:11:07 +0100 Subject: Added support for Arduino Esplora --- boards.txt | 21 +++++++++++++++++++++ bootloaders/caterina/Caterina.c | 0 bootloaders/caterina/Caterina.h | 0 bootloaders/caterina/Descriptors.c | 2 ++ bootloaders/caterina/Descriptors.h | 0 bootloaders/caterina/Makefile | 2 ++ cores/arduino/USBCore.cpp | 2 ++ 7 files changed, 27 insertions(+) mode change 100755 => 100644 bootloaders/caterina/Caterina.c mode change 100755 => 100644 bootloaders/caterina/Caterina.h mode change 100755 => 100644 bootloaders/caterina/Descriptors.c mode change 100755 => 100644 bootloaders/caterina/Descriptors.h mode change 100755 => 100644 bootloaders/caterina/Makefile diff --git a/boards.txt b/boards.txt index 0fc6881..145d551 100644 --- a/boards.txt +++ b/boards.txt @@ -167,6 +167,27 @@ leonardo.build.variant=leonardo ############################################################## +esplora.name=Arduino Esplora +esplora.upload.protocol=avr109 +esplora.upload.maximum_size=28672 +esplora.upload.speed=57600 +esplora.upload.disable_flushing=true +esplora.bootloader.low_fuses=0xff +esplora.bootloader.high_fuses=0xd8 +esplora.bootloader.extended_fuses=0xcb +esplora.bootloader.path=caterina +esplora.bootloader.file=Caterina-Esplora.hex +esplora.bootloader.unlock_bits=0x3F +esplora.bootloader.lock_bits=0x2F +esplora.build.mcu=atmega32u4 +esplora.build.f_cpu=16000000L +esplora.build.vid=0x2341 +esplora.build.pid=0x803C +esplora.build.core=arduino +esplora.build.variant=leonardo + +############################################################## + micro.name=Arduino Micro micro.upload.protocol=avr109 micro.upload.maximum_size=28672 diff --git a/bootloaders/caterina/Caterina.c b/bootloaders/caterina/Caterina.c old mode 100755 new mode 100644 diff --git a/bootloaders/caterina/Caterina.h b/bootloaders/caterina/Caterina.h old mode 100755 new mode 100644 diff --git a/bootloaders/caterina/Descriptors.c b/bootloaders/caterina/Descriptors.c old mode 100755 new mode 100644 index 5bc0733..b5e5150 --- a/bootloaders/caterina/Descriptors.c +++ b/bootloaders/caterina/Descriptors.c @@ -197,6 +197,8 @@ const USB_Descriptor_String_t ProductString = .UnicodeString = L"Arduino Leonardo" #elif DEVICE_PID == 0x0037 .UnicodeString = L"Arduino Micro " + #elif DEVICE_PID == 0x003C + .UnicodeString = L"Arduino Esplora " #else .UnicodeString = L"USB IO board " #endif diff --git a/bootloaders/caterina/Descriptors.h b/bootloaders/caterina/Descriptors.h old mode 100755 new mode 100644 diff --git a/bootloaders/caterina/Makefile b/bootloaders/caterina/Makefile old mode 100755 new mode 100644 index 91348bf..b3bd9e8 --- a/bootloaders/caterina/Makefile +++ b/bootloaders/caterina/Makefile @@ -57,6 +57,8 @@ # PID = 0x0036 # official Micro PID # PID = 0x0037 +# official Esplora PID +# PID = 0x003C # MCU name MCU = atmega32u4 diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp index dfc0f21..d3e0170 100644 --- a/cores/arduino/USBCore.cpp +++ b/cores/arduino/USBCore.cpp @@ -55,6 +55,8 @@ const u16 STRING_IPRODUCT[17] = { 'A','r','d','u','i','n','o',' ','L','e','o','n','a','r','d','o' #elif USB_PID == 0x8037 'A','r','d','u','i','n','o',' ','M','i','c','r','o',' ',' ',' ' +#elif USB_PID == 0x803C + 'A','r','d','u','i','n','o',' ','E','s','p','l','o','r','a',' ' #elif USB_PID == 0x9208 'L','i','l','y','P','a','d','U','S','B',' ',' ',' ',' ',' ',' ' #else -- cgit v1.2.3-18-g5258