mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-24 08:36:14 +01:00
up to date - just one error now
This commit is contained in:
parent
1d6b7d4c63
commit
881c490ae0
|
@ -39,9 +39,7 @@ 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 **");
|
||||||
|
@ -512,7 +510,7 @@ void MotorDriver::getFastPin(const FSH* type,int pin, bool input, FASTPIN & res
|
||||||
#if defined(ARDUINO_GIGA)
|
#if defined(ARDUINO_GIGA)
|
||||||
(void)type;
|
(void)type;
|
||||||
(void)input; // no warnings please
|
(void)input; // no warnings please
|
||||||
result = digitalPinToGpio(pin);
|
*result = digitalPinToGpio(pin);
|
||||||
#else
|
#else
|
||||||
(void) type; // avoid compiler warning if diag not used above.
|
(void) type; // avoid compiler warning if diag not used above.
|
||||||
#if defined(ARDUINO_ARCH_SAMD)
|
#if defined(ARDUINO_ARCH_SAMD)
|
||||||
|
|
|
@ -127,6 +127,8 @@ typedef uint8_t portreg_t;
|
||||||
|
|
||||||
#if defined(ARDUINO_GIGA)
|
#if defined(ARDUINO_GIGA)
|
||||||
typedef gpio_t FASTPIN;
|
typedef gpio_t FASTPIN;
|
||||||
|
#include <pinDefinitions.h>
|
||||||
|
//extern gpio_t digitalPinToGpio(uint8_t P);
|
||||||
#else
|
#else
|
||||||
struct FASTPIN {
|
struct FASTPIN {
|
||||||
volatile portreg_t *inout;
|
volatile portreg_t *inout;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user