Skip to content

Commit 590c97f

Browse files
committed
Merge remote-tracking branch 'upstream/master'
Conflicts: boards.txt platform.txt
2 parents cb3aea3 + d79b08b commit 590c97f

File tree

8 files changed

+54
-13
lines changed

8 files changed

+54
-13
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
SAMD CORE ?.?.?? ????.??.??
22

33
* Fixed type conflict of utoa function. Thanks @kbumsik
4+
* Fixed pinMode(pin, OUTPUT) not working after analogRead(pin)
45

56
SAMD CORE 1.6.11 2016.12.23
67

cores/arduino/wiring_digital.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,8 @@ void pinMode( uint32_t ulPin, uint32_t ulMode )
5858
break ;
5959

6060
case OUTPUT:
61-
// enable input, to support reading back values
62-
PORT->Group[g_APinDescription[ulPin].ulPort].PINCFG[g_APinDescription[ulPin].ulPin].bit.INEN = 1 ;
63-
64-
// disable pullups
65-
PORT->Group[g_APinDescription[ulPin].ulPort].PINCFG[g_APinDescription[ulPin].ulPin].bit.PULLEN = 0 ;
61+
// enable input, to support reading back values, with pullups disabled
62+
PORT->Group[g_APinDescription[ulPin].ulPort].PINCFG[g_APinDescription[ulPin].ulPin].reg=(uint8_t)(PORT_PINCFG_INEN) ;
6663

6764
// Set pin to output mode
6865
PORT->Group[g_APinDescription[ulPin].ulPort].DIRSET.reg = (uint32_t)(1<<g_APinDescription[ulPin].ulPin) ;

drivers/Adafruit_CircuitPlay_Express.inf renamed to drivers/Adafruit_Circuit_Playground_Express.inf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,15 @@ ServiceBinary=%12%\%DRIVERFILENAME%.sys
8787
[SourceDisksNames]
8888
[DeviceList]
8989
%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_0018
90+
%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_0019
91+
%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_0019&MI_00
9092
%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_8018&MI_00
9193
%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_8019&MI_00
9294

9395
[DeviceList.NTamd64]
9496
%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_0018
97+
%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_0019
98+
%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_0019&MI_00
9599
%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_8018&MI_00
96100
%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_8019&MI_00
97101

drivers/cdc_vista.cat

2.34 KB
Binary file not shown.

extras/package_index.json.PR.template

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{
3838
"packager": "arduino",
3939
"name": "openocd",
40-
"version": "0.9.0-arduino"
40+
"version": "0.9.0-arduino5-static"
4141
},
4242
{
4343
"packager": "arduino",
@@ -53,6 +53,47 @@
5353
}
5454
],
5555
"tools": [
56+
{
57+
"name": "openocd",
58+
"version": "0.9.0-arduino5-static",
59+
"systems": [
60+
{
61+
"host": "arm-linux-gnueabihf",
62+
"url": "http://downloads.arduino.cc/tools/openocd-0.9.0-arduino5-static-arm-linux-gnueabihf.tar.bz2",
63+
"archiveFileName": "openocd-0.9.0-arduino5-static-arm-linux-gnueabihf.tar.bz2",
64+
"checksum": "SHA-256:cef48c1448664612dd25168f0a56962aec4ce2f1d7c06dafd86a1b606dc8ae20",
65+
"size": "1319000"
66+
},
67+
{
68+
"host": "i686-mingw32",
69+
"url": "http://downloads.arduino.cc/tools/openocd-0.9.0-arduino5-static-i686-w64-mingw32.zip",
70+
"archiveFileName": "openocd-0.9.0-arduino5-static-i686-w64-mingw32.zip",
71+
"checksum": "SHA-256:54c70a0bfa1b0a3a592d6ee9ab532f9715e1dede2e7d46a3232abd72de274c5a",
72+
"size": "1641209"
73+
},
74+
{
75+
"host": "x86_64-apple-darwin",
76+
"url": "http://downloads.arduino.cc/tools/openocd-0.9.0-arduino5-static-x86_64-apple-darwin15.6.0.tar.bz2",
77+
"archiveFileName": "openocd-0.9.0-arduino5-static-x86_64-apple-darwin15.6.0.tar.bz22",
78+
"checksum": "SHA-256:14be5c5400e1a32c3d6a15f9c8d2f438634974ab263ff437b91b527e5b5d53a4",
79+
"size": "1235752"
80+
},
81+
{
82+
"host": "x86_64-pc-linux-gnu",
83+
"url": "http://downloads.arduino.cc/tools/openocd-0.9.0-arduino5-static-x86_64-linux-gnu.tar.bz2",
84+
"archiveFileName": "openocd-0.9.0-arduino5-static-x86_64-linux-gnu.tar.bz2",
85+
"checksum": "SHA-256:8e378bdcd71c93a39818c16b49b91128c8028e3d9675551ba7eff39462391ba2",
86+
"size": "1393855"
87+
},
88+
{
89+
"host": "i686-pc-linux-gnu",
90+
"url": "http://downloads.arduino.cc/tools/openocd-0.9.0-arduino5-static-i686-linux-gnu.tar.bz2",
91+
"archiveFileName": "openocd-0.9.0-arduino5-static-i686-linux-gnu.tar.bz2",
92+
"checksum": "SHA-256:8e0787f54e204fe6e9071b2b7edf8a5e695492696f1182d447647fe5c0bd55bd",
93+
"size": "1341739"
94+
}
95+
]
96+
}
5697
]
5798
}
5899
]

platform.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
2121

2222
name=Adafruit SAMD (32-bits ARM Cortex-M0+) Boards
23-
version=1.6.11
23+
version=1.6.12
2424

2525
# Compile variables
2626
# -----------------
@@ -126,8 +126,7 @@ tools.avrdude.upload.params.quiet=-q -q
126126
tools.avrdude.upload.params.noverify=-V
127127
tools.avrdude.upload.pattern="{cmd}" "-C{config.path}" {upload.verbose} -p{build.emu.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} "-Uflash:w:{build.path}/{build.project_name}.hex:i"
128128

129-
#temporary disabled remote upload
130-
tools.avrdude_remote.upload.pattern=/usr/bin/XXX-run-avrdude /tmp/sketch.hex
129+
tools.avrdude_remote.upload.pattern="openocd --version 2>&1 | grep 2017 && /usr/bin/run-avrdude /tmp/sketch.hex || echo Can't upload; update your Tian first 1>&2; exit 1"
131130

132131
#
133132
# BOSSA
@@ -148,7 +147,7 @@ tools.bossac_remote.upload.pattern=/usr/bin/run-bossac {upload.verbose} --port=t
148147
# OpenOCD sketch upload
149148
#
150149

151-
tools.openocd.path={runtime.tools.openocd-0.9.0-arduino.path}
150+
tools.openocd.path={runtime.tools.openocd-0.9.0-arduino5-static.path}
152151
tools.openocd.cmd=bin/openocd
153152
tools.openocd.cmd.windows=bin/openocd.exe
154153

@@ -175,7 +174,7 @@ tools.openocd.bootloader.pattern="{path}/{cmd}" {bootloader.verbose} -s "{path}/
175174
# FIXME: this programmer is a workaround for default options being overwritten by uploadUsingPreferences
176175
#
177176

178-
tools.openocd-withbootsize.path={runtime.tools.openocd-0.9.0-arduino.path}
177+
tools.openocd-withbootsize.path={runtime.tools.openocd-0.9.0-arduino5-static.path}
179178
tools.openocd-withbootsize.cmd=bin/openocd
180179
tools.openocd-withbootsize.cmd.windows=bin/openocd.exe
181180

variants/metro_m0/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const PinDescription g_APinDescription[]=
183183
{ PORTB, 23, PIO_SERCOM_ALT, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // SPI FLash SCK
184184

185185
// 39 - Internal NeoPixel
186-
{ PORTA, 30, PIO_OUTPUT, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // used as output only
186+
{ PORTA, 30, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // used as output only
187187

188188
// 40 (AREF)
189189
{ PORTA, 3, PIO_ANALOG, PIN_ATTR_ANALOG, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // DAC/VREFP

variants/metro_m0/variant.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ extern SERCOM sercom3;
202202
extern SERCOM sercom4;
203203
extern SERCOM sercom5;
204204

205-
extern Uart Serial5;
206205
extern Uart Serial1;
207206

208207
#endif

0 commit comments

Comments
 (0)