mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Fixed digitalPinToPort and digitalPinToBitMask macros. (thanks to alvesjc)
This commit is contained in:
@ -54,8 +54,8 @@ extern void loop( void ) ;
|
|||||||
// Get the bit location within the hardware port of the given virtual pin.
|
// 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.
|
// This comes from the pins_*.c file for the active board configuration.
|
||||||
//
|
//
|
||||||
#define digitalPinToPort(P) ( g_APinDescription[P]->pPort )
|
#define digitalPinToPort(P) ( g_APinDescription[P].pPort )
|
||||||
#define digitalPinToBitMask(P) ( g_APinDescription[P]->ulPin )
|
#define digitalPinToBitMask(P) ( g_APinDescription[P].ulPin )
|
||||||
#define digitalPinToTimer(P) ( )
|
#define digitalPinToTimer(P) ( )
|
||||||
//#define analogInPinToBit(P) ( )
|
//#define analogInPinToBit(P) ( )
|
||||||
#define portOutputRegister(port) ( port->PIO_ODSR )
|
#define portOutputRegister(port) ( port->PIO_ODSR )
|
||||||
|
Reference in New Issue
Block a user