From 1d6b7d4c63ef0478644903c89cff3406e72c70a7 Mon Sep 17 00:00:00 2001 From: travis-farmer Date: Fri, 20 Oct 2023 13:45:02 -0400 Subject: [PATCH] moved extern, no change... --- MotorDriver.cpp | 4 +++- MotorDriver.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MotorDriver.cpp b/MotorDriver.cpp index f18050e..2fc726c 100644 --- a/MotorDriver.cpp +++ b/MotorDriver.cpp @@ -39,7 +39,9 @@ volatile portreg_t shadowPORTD; volatile portreg_t shadowPORTE; volatile portreg_t shadowPORTF; #endif - +#ifdef ARDUINO_GIGA +extern gpio_t digitalPinToGpio(int P); +#endif MotorDriver::MotorDriver(int16_t power_pin, byte signal_pin, byte signal_pin2, int16_t brake_pin, byte current_pin, float sense_factor, unsigned int trip_milliamps, int16_t fault_pin) { const FSH * warnString = F("** WARNING **"); diff --git a/MotorDriver.h b/MotorDriver.h index 12e44c5..43acb30 100644 --- a/MotorDriver.h +++ b/MotorDriver.h @@ -31,7 +31,6 @@ enum TRACK_MODE : byte {TRACK_MODE_NONE = 1, TRACK_MODE_MAIN = 2, TRACK_MODE_PROG = 4, TRACK_MODE_DC = 8, TRACK_MODE_DCX = 16, TRACK_MODE_EXT = 32}; #ifdef ARDUINO_GIGA -extern gpio_t digitalPinToGpio(int P); #define setHIGH(fastpin) gpio_write(&fastpin, 1) #define setLOW(fastpin) gpio_write(&fastpin, 0) #else