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 dc97316 commit 73649c2Copy full SHA for 73649c2
hardware/arduino/sam/cores/arduino/Arduino.h
@@ -54,8 +54,8 @@ extern void loop( void ) ;
54
// Get the bit location within the hardware port of the given virtual pin.
55
// This comes from the pins_*.c file for the active board configuration.
56
//
57
-#define digitalPinToPort(P) ( g_APinDescription[P]->pPort )
58
-#define digitalPinToBitMask(P) ( g_APinDescription[P]->ulPin )
+#define digitalPinToPort(P) ( g_APinDescription[P].pPort )
+#define digitalPinToBitMask(P) ( g_APinDescription[P].ulPin )
59
#define digitalPinToTimer(P) ( )
60
//#define analogInPinToBit(P) ( )
61
#define portOutputRegister(port) ( port->PIO_ODSR )
0 commit comments