From 63f51a48bf2acdbc7ef2686683cfc69058463d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Grome=C5=A1?= Date: Mon, 28 Jan 2019 19:54:50 +0100 Subject: [PATCH] Added missing portModeRegister macro --- cores/arduino/Arduino.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h index 02bccea4..576093b5 100644 --- a/cores/arduino/Arduino.h +++ b/cores/arduino/Arduino.h @@ -129,6 +129,7 @@ bool isDoubleBondedActive(uint8_t pin); #define portOutputRegister(P) ( (volatile uint8_t *)( &portToPortStruct(P)->OUT ) ) #define portInputRegister(P) ( (volatile uint8_t *)( &portToPortStruct(P)->IN ) ) +#define portModeRegister(P) ( (volatile uint8_t *)( &portToPortStruct(P)->DIR ) ) #ifdef __cplusplus } // extern "C"