mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-24 08:36:14 +01:00
compiles but will not link...
This commit is contained in:
parent
6ea3366c75
commit
9cff33a414
|
@ -510,7 +510,7 @@ void MotorDriver::getFastPin(const FSH* type,int pin, bool input, FASTPIN & res
|
|||
#if defined(ARDUINO_GIGA)
|
||||
(void)type;
|
||||
(void)input; // no warnings please
|
||||
*result = digitalPinToGpio(pin);
|
||||
result = digitalPinToGpio(pin);
|
||||
#else
|
||||
(void) type; // avoid compiler warning if diag not used above.
|
||||
#if defined(ARDUINO_ARCH_SAMD)
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user