Skip to content

Commit 74dea07

Browse files
committed
portOutputRegister is now writeable.
1 parent b5b50ca commit 74dea07

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

build/shared/revisions.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
[ide]
33
* Fixed IDE startup bug "Menu has no enabled items"
44

5+
[arduino core]
6+
* sam: portOutputRegister() is now writeable.
7+
58
ARDUINO BETA 1.5.1r2 - 2012.11.06
69

710
* Fixed wrong release file for windows.

hardware/arduino/sam/variants/arduino_due_x/variant.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ void init( void )
352352
for (int i = 0; i < PINS_COUNT; i++)
353353
digitalWrite(i, LOW);
354354

355+
// Enable parallel access on PIO output data registers
356+
PIOA->PIO_OWER = 0xFFFFFFFF;
357+
PIOB->PIO_OWER = 0xFFFFFFFF;
358+
PIOC->PIO_OWER = 0xFFFFFFFF;
359+
PIOD->PIO_OWER = 0xFFFFFFFF;
360+
355361
// Initialize Serial port U(S)ART pins
356362
PIO_Configure(
357363
g_APinDescription[PINS_UART].pPort,

0 commit comments

Comments
 (0)