From 1c8de51054d129a14082124ba97f31d64098b6e0 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 6 Jun 2016 18:13:12 +0300 Subject: [PATCH] Add support for Arduboy DevKit --- HISTORY.rst | 6 +++++ docs/frameworks/arduino.rst | 7 ++++++ docs/platforms/atmelavr.rst | 7 ++++++ docs/platforms/embedded_boards.rst | 7 ++++++ platformio/__init__.py | 2 +- platformio/boards/misc.json | 38 ++++++++++++++++++++++++++---- 6 files changed, 61 insertions(+), 6 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 6dd6566f..313a82cf 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,6 +4,12 @@ Release Notes PlatformIO 2.0 -------------- +2.9.5 (2016-06-??) +~~~~~~~~~~~~~~~~~~ + +* Added support for `Arduboy DevKit `__, the game system + the size of a credit card + 2.9.4 (2016-06-04) ~~~~~~~~~~~~~~~~~~ diff --git a/docs/frameworks/arduino.rst b/docs/frameworks/arduino.rst index b4fcf0e7..ebb4d499 100644 --- a/docs/frameworks/arduino.rst +++ b/docs/frameworks/arduino.rst @@ -196,6 +196,13 @@ Arduboy - 32 Kb - 2.5 Kb + * - ``arduboy_devkit`` + - `Arduboy DevKit `_ + - ATMEGA32U4 + - 16 MHz + - 32 Kb + - 2.5 Kb + Arduino ~~~~~~~ diff --git a/docs/platforms/atmelavr.rst b/docs/platforms/atmelavr.rst index d1e26c13..64804ec9 100644 --- a/docs/platforms/atmelavr.rst +++ b/docs/platforms/atmelavr.rst @@ -186,6 +186,13 @@ Arduboy - 32 Kb - 2.5 Kb + * - ``arduboy_devkit`` + - `Arduboy DevKit `_ + - ATMEGA32U4 + - 16 MHz + - 32 Kb + - 2.5 Kb + Arduino ~~~~~~~ diff --git a/docs/platforms/embedded_boards.rst b/docs/platforms/embedded_boards.rst index 9b755937..ad63ea57 100644 --- a/docs/platforms/embedded_boards.rst +++ b/docs/platforms/embedded_boards.rst @@ -182,6 +182,13 @@ Arduboy - 32 Kb - 2.5 Kb + * - ``arduboy_devkit`` + - `Arduboy DevKit `_ + - ATMEGA32U4 + - 16 MHz + - 32 Kb + - 2.5 Kb + Arduino ~~~~~~~ diff --git a/platformio/__init__.py b/platformio/__init__.py index e470d028..ea54e00c 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -14,7 +14,7 @@ import sys -VERSION = (2, 9, 4) +VERSION = (2, 9, "5.dev0") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" diff --git a/platformio/boards/misc.json b/platformio/boards/misc.json index 4d65abdb..92cd0d12 100644 --- a/platformio/boards/misc.json +++ b/platformio/boards/misc.json @@ -743,16 +743,14 @@ "arduboy": { "build": { "core": "arduino", - "extra_flags": "-DARDUINO_ARCH_AVR -DARDUINO_AVR_LEONARDO", + "extra_flags": "-DARDUINO_ARCH_AVR -DARDUINO_AVR_ARDUBOY -DARDUBOY_10", "f_cpu": "16000000L", "mcu": "atmega32u4", - "usb_product": "Arduino Leonardo", + "usb_product": "Arduboy", "variant": "leonardo", "hwid": [ ["0x2341", "0x0036"], - ["0x2341", "0x8036"], - ["0x2A03", "0x0036"], - ["0x2A03", "0x8036"] + ["0x2341", "0x8036"] ] }, "frameworks": ["arduino"], @@ -770,5 +768,35 @@ }, "url": "https://www.arduboy.com", "vendor": "Arduboy" + }, + + "arduboy_devkit": { + "build": { + "core": "arduino", + "extra_flags": "-DARDUINO_ARCH_AVR -DARDUINO_AVR_ARDUBOY_DEVKIT -DAB_DEVKIT", + "f_cpu": "16000000L", + "mcu": "atmega32u4", + "usb_product": "Arduboy DevKit", + "variant": "leonardo", + "hwid": [ + ["0x2341", "0x0036"], + ["0x2341", "0x8036"] + ] + }, + "frameworks": ["arduino"], + "name": "Arduboy DevKit", + "platform": "atmelavr", + "upload": { + "disable_flushing": true, + "maximum_ram_size": 2560, + "maximum_size": 28672, + "protocol": "avr109", + "require_upload_port" : true, + "speed": 57600, + "use_1200bps_touch": true, + "wait_for_upload_port": true + }, + "url": "https://www.arduboy.com", + "vendor": "Arduboy" } }