Skip to content

Commit ceacc17

Browse files
authored
Merge pull request #15 from jgromes/master
Added missing portModeRegister macro
2 parents 76c9153 + 63f51a4 commit ceacc17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: cores/arduino/Arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ bool isDoubleBondedActive(uint8_t pin);
129129

130130
#define portOutputRegister(P) ( (volatile uint8_t *)( &portToPortStruct(P)->OUT ) )
131131
#define portInputRegister(P) ( (volatile uint8_t *)( &portToPortStruct(P)->IN ) )
132+
#define portModeRegister(P) ( (volatile uint8_t *)( &portToPortStruct(P)->DIR ) )
132133

133134
#ifdef __cplusplus
134135
} // extern "C"

0 commit comments

Comments
 (0)