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:
parent
9cff33a414
commit
1d6b7d4c63
|
@ -39,7 +39,9 @@ volatile portreg_t shadowPORTD;
|
||||||
volatile portreg_t shadowPORTE;
|
volatile portreg_t shadowPORTE;
|
||||||
volatile portreg_t shadowPORTF;
|
volatile portreg_t shadowPORTF;
|
||||||
#endif
|
#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,
|
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) {
|
byte current_pin, float sense_factor, unsigned int trip_milliamps, int16_t fault_pin) {
|
||||||
const FSH * warnString = F("** WARNING **");
|
const FSH * warnString = F("** WARNING **");
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
enum TRACK_MODE : byte {TRACK_MODE_NONE = 1, TRACK_MODE_MAIN = 2, TRACK_MODE_PROG = 4,
|
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};
|
TRACK_MODE_DC = 8, TRACK_MODE_DCX = 16, TRACK_MODE_EXT = 32};
|
||||||
#ifdef ARDUINO_GIGA
|
#ifdef ARDUINO_GIGA
|
||||||
extern gpio_t digitalPinToGpio(int P);
|
|
||||||
#define setHIGH(fastpin) gpio_write(&fastpin, 1)
|
#define setHIGH(fastpin) gpio_write(&fastpin, 1)
|
||||||
#define setLOW(fastpin) gpio_write(&fastpin, 0)
|
#define setLOW(fastpin) gpio_write(&fastpin, 0)
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user