aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2012-12-07 18:11:07 +0100
committerCristian Maglie <c.maglie@bug.st>2012-12-07 18:11:07 +0100
commit1668039101ddee651f9b8e9b763134e0a5aebf59 (patch)
tree82c77cd2694b460abbf2a267725196f99f17cc92
parent4c371b4ae96a28ba9291e669799e5c0086603f33 (diff)
Added support for Arduino Esplora
-rw-r--r--boards.txt21
-rw-r--r--[-rwxr-xr-x]bootloaders/caterina/Caterina.c0
-rw-r--r--[-rwxr-xr-x]bootloaders/caterina/Caterina.h0
-rw-r--r--[-rwxr-xr-x]bootloaders/caterina/Descriptors.c2
-rw-r--r--[-rwxr-xr-x]bootloaders/caterina/Descriptors.h0
-rw-r--r--[-rwxr-xr-x]bootloaders/caterina/Makefile2
-rw-r--r--cores/arduino/USBCore.cpp2
7 files changed, 27 insertions, 0 deletions
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
index 9860b3a..9860b3a 100755..100644
--- a/bootloaders/caterina/Caterina.c
+++ b/bootloaders/caterina/Caterina.c
diff --git a/bootloaders/caterina/Caterina.h b/bootloaders/caterina/Caterina.h
index 5ce80fa..5ce80fa 100755..100644
--- a/bootloaders/caterina/Caterina.h
+++ b/bootloaders/caterina/Caterina.h
diff --git a/bootloaders/caterina/Descriptors.c b/bootloaders/caterina/Descriptors.c
index 5bc0733..b5e5150 100755..100644
--- 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
index 94091ae..94091ae 100755..100644
--- a/bootloaders/caterina/Descriptors.h
+++ b/bootloaders/caterina/Descriptors.h
diff --git a/bootloaders/caterina/Makefile b/bootloaders/caterina/Makefile
index 91348bf..b3bd9e8 100755..100644
--- 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