From 32e1ce219a9a222dfdbcae2392e4125c845b2d8b Mon Sep 17 00:00:00 2001 From: Valeriy Koval Date: Fri, 18 Mar 2016 11:50:14 +0200 Subject: [PATCH] Add Seeed Arch Max board // Resolve #572 --- platformio/boards/ststm32.json | 16 ++++++++++++++++ platformio/builder/scripts/frameworks/mbed.py | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/platformio/boards/ststm32.json b/platformio/boards/ststm32.json index a2746070..5840029c 100644 --- a/platformio/boards/ststm32.json +++ b/platformio/boards/ststm32.json @@ -541,5 +541,21 @@ }, "url": "https://developer.mbed.org/platforms/ST-Nucleo-L476RG/", "vendor": "ST" + }, + "seeedArchMax": { + "build": { + "f_cpu": "168000000L", + "cpu": "cortex-m4", + "mcu": "stm32f407vet6" + }, + "frameworks": ["mbed"], + "name": "SeeedStudio Arch Max", + "platform": "ststm32", + "upload": { + "maximum_ram_size": 196608, + "maximum_size": 524288 + }, + "url": "https://developer.mbed.org/platforms/Seeed-Arch-Max/", + "vendor": "SeeedStudio" } } diff --git a/platformio/builder/scripts/frameworks/mbed.py b/platformio/builder/scripts/frameworks/mbed.py index cb97a4c5..c80dc5a8 100644 --- a/platformio/builder/scripts/frameworks/mbed.py +++ b/platformio/builder/scripts/frameworks/mbed.py @@ -49,6 +49,7 @@ MBED_VARIANTS = { "blueboard_lpc11u24": "LPC11U24", "dipcortexm0": "LPC11U24", "seeeduinoArchPro": "ARCH_PRO", + "seeedArchMax": "ARCH_MAX", "ubloxc027": "UBLOX_C027", "lpc1114fn28": "LPC1114", "lpc11u35": "LPC11U35_401", @@ -266,7 +267,7 @@ env.Append( # Target: Build mbed Library # -libs = [l for l in eixdata.get("STDLIBS", []) if l not in env.get("LIBS")] +libs = [l for l in eixdata.get("STDLIBS", []) if l not in env.get("LIBS", [])] libs.extend(["mbed", "c", "gcc"]) libs.append(env.Library(