mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Fixed portOutputRegister() and portInputRegister() macros.
http://arduino.cc/forum/index.php/topic,130714.0.html
This commit is contained in:
@ -58,8 +58,8 @@ extern void loop( void ) ;
|
||||
#define digitalPinToBitMask(P) ( g_APinDescription[P].ulPin )
|
||||
#define digitalPinToTimer(P) ( )
|
||||
//#define analogInPinToBit(P) ( )
|
||||
#define portOutputRegister(port) ( port->PIO_ODSR )
|
||||
#define portInputRegister(port) ( port->PIO_PDSR )
|
||||
#define portOutputRegister(port) ( &(port->PIO_ODSR) )
|
||||
#define portInputRegister(port) ( &(port->PIO_PDSR) )
|
||||
//#define portModeRegister(P) ( )
|
||||
|
||||
//#define NOT_A_PIN 0 // defined in pio.h/EPioType
|
||||
|
Reference in New Issue
Block a user