Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

portOutputRegister is now writeable.

  • Loading branch information...
commit 74dea07f2c7e977bacf5c61f7e8502609b285dbb 1 parent b5b50ca
@cmaglie authored
View
3  build/shared/revisions.txt
@@ -2,6 +2,9 @@
[ide]
* Fixed IDE startup bug "Menu has no enabled items"
+[arduino core]
+* sam: portOutputRegister() is now writeable.
+
ARDUINO BETA 1.5.1r2 - 2012.11.06
* Fixed wrong release file for windows.
View
6 hardware/arduino/sam/variants/arduino_due_x/variant.cpp
@@ -352,6 +352,12 @@ void init( void )
for (int i = 0; i < PINS_COUNT; i++)
digitalWrite(i, LOW);
+ // Enable parallel access on PIO output data registers
+ PIOA->PIO_OWER = 0xFFFFFFFF;
+ PIOB->PIO_OWER = 0xFFFFFFFF;
+ PIOC->PIO_OWER = 0xFFFFFFFF;
+ PIOD->PIO_OWER = 0xFFFFFFFF;
+
// Initialize Serial port U(S)ART pins
PIO_Configure(
g_APinDescription[PINS_UART].pPort,
Please sign in to comment.
Something went wrong with that request. Please try again.