1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-24 08:36:14 +01:00

moved extern, no change...

This commit is contained in:
travis-farmer 2023-10-20 13:45:02 -04:00
parent 9cff33a414
commit 1d6b7d4c63
2 changed files with 3 additions and 2 deletions

View File

@ -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 **");

View File

@ -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