mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
Fixed portOutputRegister() and portInputRegister() macros.
http://arduino.cc/forum/index.php/topic,130714.0.html
This commit is contained in:
parent
73649c2f60
commit
c68a0f5875
@ -58,8 +58,8 @@ extern void loop( void ) ;
|
|||||||
#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) )
|
||||||
#define portInputRegister(port) ( port->PIO_PDSR )
|
#define portInputRegister(port) ( &(port->PIO_PDSR) )
|
||||||
//#define portModeRegister(P) ( )
|
//#define portModeRegister(P) ( )
|
||||||
|
|
||||||
//#define NOT_A_PIN 0 // defined in pio.h/EPioType
|
//#define NOT_A_PIN 0 // defined in pio.h/EPioType
|
||||||
|
Loading…
x
Reference in New Issue
Block a user