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:
parent
dc97316100
commit
73649c2f60
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user