Skip to content

Commit

Permalink
Merge branch 'release/v3.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed May 2, 2018
2 parents a8d8745 + 0f81dfe commit a826d72
Show file tree
Hide file tree
Showing 42 changed files with 200,050 additions and 43 deletions.
3 changes: 2 additions & 1 deletion boards/adafruit_circuitplayground_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"variant": "circuitplay"
},
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/adafruit_feather_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"variant": "feather_m0"
},
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/adafruit_feather_m0_express.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"variant": "feather_m0_express"
},
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/adafruit_gemma_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"variant": "gemma_m0"
},
"debug": {
"openocd_chipname": "at91samd21e18"
"openocd_chipname": "at91samd21e18",
"svd_path": "ATSAMD21E18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/adafruit_metro_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"variant": "metro_m0"
},
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/adafruit_trinket_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"variant": "trinket_m0"
},
"debug": {
"openocd_chipname": "at91samd21e18"
"openocd_chipname": "at91samd21e18",
"svd_path": "ATSAMD21E18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/digix.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"can"
],
"debug": {
"openocd_chipname": "at91sam3X8E"
"openocd_chipname": "at91sam3X8E",
"svd_path": "ATSAM3X8E.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/due.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"can"
],
"debug": {
"openocd_chipname": "at91sam3X8E"
"openocd_chipname": "at91sam3X8E",
"svd_path": "ATSAM3X8E.svd"
},
"frameworks": [
"arduino",
Expand Down
3 changes: 2 additions & 1 deletion boards/dueUSB.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"can"
],
"debug": {
"openocd_chipname": "at91sam3X8E"
"openocd_chipname": "at91sam3X8E",
"svd_path": "ATSAM3X8E.svd"
},
"frameworks": [
"arduino",
Expand Down
3 changes: 2 additions & 1 deletion boards/macchina2.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"can"
],
"debug": {
"openocd_chipname": "at91sam3X8E"
"openocd_chipname": "at91sam3X8E",
"svd_path": "ATSAM3X8E.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/mkr1000USB.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"wifi"
],
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/mkrfox1200.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"variant": "mkrfox1200"
},
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/mkrgsm1400.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"variant": "mkrgsm1400"
},
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/mkrwan1300.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"variant": "mkrwan1300"
},
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/mkrzero.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"variant": "mkrzero"
},
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/mzeroUSB.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"variant": "arduino_mzero"
},
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/mzeropro.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"onboard_tools": [
"cmsis-dap"
],
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/mzeroproUSB.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"onboard_tools": [
"cmsis-dap"
],
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/sainSmartDue.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"can"
],
"debug": {
"openocd_chipname": "at91sam3X8E"
"openocd_chipname": "at91sam3X8E",
"svd_path": "ATSAM3X8E.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/sainSmartDueUSB.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"can"
],
"debug": {
"openocd_chipname": "at91sam3X8E"
"openocd_chipname": "at91sam3X8E",
"svd_path": "ATSAM3X8E.svd"
},
"frameworks": [
"arduino"
Expand Down
5 changes: 3 additions & 2 deletions boards/samd21_xpro.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"build": {
"cpu": "cortex-m0plus",
"f_cpu": "48000000L",
"mcu": "atsamd21j18a"
"mcu": "samd21j18a"
},
"debug": {
"onboard_tools": [
"cmsis-dap"
],
"openocd_chipname": "at91samd21j18"
"openocd_chipname": "at91samd21j18",
"svd_path": "ATSAMD21J18A.svd"
},
"frameworks": [
"mbed"
Expand Down
7 changes: 4 additions & 3 deletions boards/samd21g18a.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"core": "samd",
"cpu": "cortex-m0plus",
"extra_flags": "-DARDUINO_SAMD_MKR1000 -DARDUINO_ARCH_SAMD -D__SAMD21G18A__",
"f_cpu": "48000000L",
"hwids": [
[
"0x03EB",
"0x2111"
]
],
"ldscript": "flash_without_bootloader.ld",
"f_cpu": "48000000L",
"mcu": "atsamd21g18a",
"mcu": "samd21g18a",
"usb_product": "Atmel ATSAMW25-XPRO",
"variant": "w25_xplained_pro"
},
Expand All @@ -22,7 +22,8 @@
"onboard_tools": [
"cmsis-dap"
],
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino",
Expand Down
5 changes: 3 additions & 2 deletions boards/saml21_xpro_b.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"build": {
"cpu": "cortex-m0plus",
"f_cpu": "48000000L",
"mcu": "atsaml21j18b"
"mcu": "saml21j18b"
},
"debug": {
"onboard_tools": [
"cmsis-dap"
],
"openocd_chipname": "at91saml21j18"
"openocd_chipname": "at91saml21j18",
"svd_path": "ATSAML21J18B.svd"
},
"frameworks": [
"mbed"
Expand Down
5 changes: 3 additions & 2 deletions boards/samr21_xpro.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"build": {
"cpu": "cortex-m0plus",
"f_cpu": "48000000L",
"mcu": "atsamr21g18a"
"mcu": "samr21g18a"
},
"debug": {
"onboard_tools": [
"cmsis-dap"
],
"openocd_chipname": "at91samr21g18"
"openocd_chipname": "at91samr21g18",
"svd_path": "ATSAMR21G18A.svd"
},
"frameworks": [
"mbed"
Expand Down
3 changes: 2 additions & 1 deletion boards/sodaq_autonomo.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"variant": "sodaq_autonomo"
},
"debug": {
"openocd_chipname": "at91samd21j18"
"openocd_chipname": "at91samd21j18",
"svd_path": "ATSAMD21J18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/sodaq_explorer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"variant": "sodaq_explorer"
},
"debug": {
"openocd_chipname": "at91samd21j18"
"openocd_chipname": "at91samd21j18",
"svd_path": "ATSAMD21J18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/sodaq_one.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"variant": "sodaq_one"
},
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/sparkfun_samd21_dev_usb.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"variant": "arduino_zero"
},
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/sparkfun_samd21_mini_usb.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"variant": "SparkFun_SAMD_Mini"
},
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/tian.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"ethernet"
],
"debug": {
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/zero.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"onboard_tools": [
"cmsis-dap"
],
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 2 additions & 1 deletion boards/zeroUSB.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"onboard_tools": [
"cmsis-dap"
],
"openocd_chipname": "at91samd21g18"
"openocd_chipname": "at91samd21g18",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
Expand Down
3 changes: 1 addition & 2 deletions builder/frameworks/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@

FRAMEWORK_DIR = platform.get_package_dir("framework-arduinosam")
assert isdir(FRAMEWORK_DIR)
FRAMEWORK_VERSION = platform.get_package_version("framework-arduinosam")
BUILD_CORE = env.BoardConfig().get("build.core", "")
BUILD_SYSTEM = env.BoardConfig().get("build.system", BUILD_CORE)
SYSTEM_DIR = join(FRAMEWORK_DIR, "system", BUILD_SYSTEM)

# USB flags
ARDUINO_USBDEFINES = [("ARDUINO", int(FRAMEWORK_VERSION.split(".")[1]))]
ARDUINO_USBDEFINES = [("ARDUINO", 10805)]
if "build.usb_product" in env.BoardConfig():
ARDUINO_USBDEFINES += [
("USB_VID", env.BoardConfig().get("build.hwids")[0][0]),
Expand Down
Loading

0 comments on commit a826d72

Please sign in to comment.