We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73649c2 commit c68a0f5Copy full SHA for c68a0f5
hardware/arduino/sam/cores/arduino/Arduino.h
@@ -58,8 +58,8 @@ extern void loop( void ) ;
58
#define digitalPinToBitMask(P) ( g_APinDescription[P].ulPin )
59
#define digitalPinToTimer(P) ( )
60
//#define analogInPinToBit(P) ( )
61
-#define portOutputRegister(port) ( port->PIO_ODSR )
62
-#define portInputRegister(port) ( port->PIO_PDSR )
+#define portOutputRegister(port) ( &(port->PIO_ODSR) )
+#define portInputRegister(port) ( &(port->PIO_PDSR) )
63
//#define portModeRegister(P) ( )
64
65
//#define NOT_A_PIN 0 // defined in pio.h/EPioType
0 commit comments