Skip to content

Commit f4f2a45

Browse files
committed
Fixed portOutputRegister macro
1 parent 83672b0 commit f4f2a45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/arduino/Arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ bool isDoubleBondedActive(uint8_t pin);
132132
#define getPINnCTRLregister(port, bit_pos) ( ((port != NULL) && (bit_pos < NOT_A_PIN)) ? ((uint8_t *)&(port->PIN0CTRL) + bit_pos) : NULL )
133133
#define digitalPinToInterrupt(p) ( digitalPinToPort(p) * 8 + digitalPinToBitPosition(p) )
134134

135+
#define portOutputRegister(P) ( (volatile uint8_t *)( &portToPortStruct(P)->OUT ) )
136+
135137
#ifdef __cplusplus
136138
} // extern "C"
137139
#endif

0 commit comments

Comments
 (0)