mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 21:21:24 +01:00
Minor edits.
This commit is contained in:
parent
8fa1ba3039
commit
cb365579d8
@ -119,8 +119,9 @@ void TCC2_Handler() {
|
|||||||
|
|
||||||
|
|
||||||
bool DCCTimer::isPWMPin(byte pin) {
|
bool DCCTimer::isPWMPin(byte pin) {
|
||||||
//TODO: SAMD test this works!
|
//TODO: SAMD whilst this call to digitalPinHasPWM will reveal which pins can do PWM,
|
||||||
// return digitalPinHasPWM(pin);
|
// there's no support yet for High Accuracy, so for now return false
|
||||||
|
// return digitalPinHasPWM(pin);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
20
defines.h
20
defines.h
@ -77,15 +77,21 @@
|
|||||||
// This defines the speed at which the Arduino will communicate with the ESP8266 module.
|
// This defines the speed at which the Arduino will communicate with the ESP8266 module.
|
||||||
// Currently only devices which can communicate at 115200 are supported.
|
// Currently only devices which can communicate at 115200 are supported.
|
||||||
//
|
//
|
||||||
|
// TODO: PMA remove! Need 9600bps for Sparkfun shield with old firmware!
|
||||||
|
#if defined(ARDUINO_ARCH_SAMD)
|
||||||
#define WIFI_SERIAL_LINK_SPEED 9600
|
#define WIFI_SERIAL_LINK_SPEED 9600
|
||||||
|
#else
|
||||||
|
#define WIFI_SERIAL_LINK_SPEED 115200
|
||||||
|
#endif
|
||||||
|
|
||||||
// TODO: PMA - figure out why enabling this causes the CS to crashe immediately after starting the motor driver
|
// TODO: PMA - figure out why enabling this causes the CS to crashe immediately after starting the motor driver
|
||||||
//#if __has_include ( "myAutomation.h")
|
// on the SAMD platform - going to try to rebase to current TrackManager in case it's not my bug :-)
|
||||||
// #if defined(BIG_RAM) || defined(DISABLE_EEPROM)
|
#if __has_include ( "myAutomation.h")
|
||||||
// #define EXRAIL_ACTIVE
|
#if defined(BIG_RAM) || defined(DISABLE_EEPROM)
|
||||||
// #else
|
#define EXRAIL_ACTIVE
|
||||||
// #define EXRAIL_WARNING
|
#else
|
||||||
// #endif
|
#define EXRAIL_WARNING
|
||||||
//#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user