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