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 6ee2212 commit ff88083Copy full SHA for ff88083
cores/nRF5/Arduino.h
@@ -122,7 +122,7 @@ uint32_t setLoopStacksize(void);
122
#define digitalPinToBitMask(P) ( 1 << (P) )
123
//#define analogInPinToBit(P) ( )
124
#define portOutputRegister(port) ( &(port->OUT) )
125
-#define portInputRegister(port) ( &(port->IN) )
+#define portInputRegister(port) ( (volatile uint32_t*) &(port->IN) )
126
#define portModeRegister(port) ( &(port->DIR) )
127
#define digitalPinHasPWM(P) ( (P) > 1 )
128
0 commit comments