Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed digitalPinToPort and digitalPinToBitMask macros. (thanks to alv…

…esjc)
  • Loading branch information...
commit 73649c2f60d0a006061382b0966a06e6d0fda7fe 1 parent dc97316
@cmaglie cmaglie authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 hardware/arduino/sam/cores/arduino/Arduino.h
View
4 hardware/arduino/sam/cores/arduino/Arduino.h
@@ -54,8 +54,8 @@ extern void loop( void ) ;
// Get the bit location within the hardware port of the given virtual pin.
// This comes from the pins_*.c file for the active board configuration.
//
-#define digitalPinToPort(P) ( g_APinDescription[P]->pPort )
-#define digitalPinToBitMask(P) ( g_APinDescription[P]->ulPin )
+#define digitalPinToPort(P) ( g_APinDescription[P].pPort )
+#define digitalPinToBitMask(P) ( g_APinDescription[P].ulPin )
#define digitalPinToTimer(P) ( )
//#define analogInPinToBit(P) ( )
#define portOutputRegister(port) ( port->PIO_ODSR )
Please sign in to comment.
Something went wrong with that request. Please try again.