1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 17:46:14 +01:00

Teensy/nanoEvery compiler warnings

No functional change, just avoiding compiler warnings for un used parameters in some architectures.
This commit is contained in:
Asbelos 2021-04-12 09:18:48 +01:00
parent 813ad7e6a4
commit 8197e2bffa

View File

@ -72,10 +72,13 @@ INTERRUPT_CALLBACK interruptHandler=0;
} }
bool DCCTimer::isPWMPin(byte pin) { bool DCCTimer::isPWMPin(byte pin) {
(void) pin;
return false; // TODO what are the relevant pins? return false; // TODO what are the relevant pins?
} }
void DCCTimer::setPWM(byte pin, bool high) { void DCCTimer::setPWM(byte pin, bool high) {
(void) pin;
(void) high;
// TODO what are the relevant pins? // TODO what are the relevant pins?
} }
@ -97,12 +100,15 @@ INTERRUPT_CALLBACK interruptHandler=0;
bool DCCTimer::isPWMPin(byte pin) { bool DCCTimer::isPWMPin(byte pin) {
//Teensy: digitalPinHasPWM, todo //Teensy: digitalPinHasPWM, todo
(void) pin;
return false; // TODO what are the relevant pins? return false; // TODO what are the relevant pins?
} }
void DCCTimer::setPWM(byte pin, bool high) { void DCCTimer::setPWM(byte pin, bool high) {
// TODO what are the relevant pins? // TODO what are the relevant pins?
} (void) pin;
(void) high;
}
void DCCTimer::getSimulatedMacAddress(byte mac[6]) { void DCCTimer::getSimulatedMacAddress(byte mac[6]) {
#if defined(__IMXRT1062__) //Teensy 4.0 and Teensy 4.1 #if defined(__IMXRT1062__) //Teensy 4.0 and Teensy 4.1