1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Fixed digitalPinToPort and digitalPinToBitMask macros. (thanks to alvesjc)

This commit is contained in:
Cristian Maglie 2012-11-04 23:39:02 +01:00
parent dc97316100
commit 73649c2f60

View File

@ -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 )