diff --git a/examples/Argument_Complex/Argument_Complex.ino b/examples/Argument_Complex/Argument_Complex.ino index 162f22b..b9aadf7 100644 --- a/examples/Argument_Complex/Argument_Complex.ino +++ b/examples/Argument_Complex/Argument_Complex.ino @@ -47,6 +47,8 @@ volatile pinStruct myOutputPins = { LED_BUILTIN, 0, 1 }; bool TimerHandler(struct repeating_timer *t) { + (void) t; + static bool toggle = false; //timer interrupt toggles pins diff --git a/examples/Argument_None/Argument_None.ino b/examples/Argument_None/Argument_None.ino index 38681dd..1efd8b4 100644 --- a/examples/Argument_None/Argument_None.ino +++ b/examples/Argument_None/Argument_None.ino @@ -50,6 +50,8 @@ bool TimerHandler0(struct repeating_timer *t) { + (void) t; + static bool toggle0 = false; #if (TIMER_INTERRUPT_DEBUG > 0) @@ -65,6 +67,8 @@ bool TimerHandler0(struct repeating_timer *t) bool TimerHandler1(struct repeating_timer *t) { + (void) t; + static bool toggle1 = false; #if (TIMER_INTERRUPT_DEBUG > 0) diff --git a/examples/Argument_Simple/Argument_Simple.ino b/examples/Argument_Simple/Argument_Simple.ino index 9261644..4cf6b31 100644 --- a/examples/Argument_Simple/Argument_Simple.ino +++ b/examples/Argument_Simple/Argument_Simple.ino @@ -44,6 +44,8 @@ RPI_PICO_Timer ITimer2(2); bool TimerHandler1(struct repeating_timer *t) { + (void) t; + static bool toggle1 = false; #if (TIMER_INTERRUPT_DEBUG > 0) @@ -61,6 +63,8 @@ bool TimerHandler1(struct repeating_timer *t) bool TimerHandler2(struct repeating_timer *t) { + (void) t; + static bool toggle2 = false; #if (TIMER_INTERRUPT_DEBUG > 0) diff --git a/examples/Change_Interval/Change_Interval.ino b/examples/Change_Interval/Change_Interval.ino index 6f74e82..b8829f6 100644 --- a/examples/Change_Interval/Change_Interval.ino +++ b/examples/Change_Interval/Change_Interval.ino @@ -52,6 +52,8 @@ volatile uint32_t Timer1Count = 0; bool TimerHandler0(struct repeating_timer *t) { + (void) t; + static bool toggle0 = false; // Flag for checking to be sure ISR is working as Serial.print is not OK here in ISR @@ -70,6 +72,8 @@ bool TimerHandler0(struct repeating_timer *t) bool TimerHandler1(struct repeating_timer *t) { + (void) t; + static bool toggle1 = false; // Flag for checking to be sure ISR is working as Serial.print is not OK here in ISR diff --git a/examples/ISR_16_Timers_Array_Complex/ISR_16_Timers_Array_Complex.ino b/examples/ISR_16_Timers_Array_Complex/ISR_16_Timers_Array_Complex.ino index c178b91..18f2769 100644 --- a/examples/ISR_16_Timers_Array_Complex/ISR_16_Timers_Array_Complex.ino +++ b/examples/ISR_16_Timers_Array_Complex/ISR_16_Timers_Array_Complex.ino @@ -80,6 +80,8 @@ RPI_PICO_ISR_Timer ISR_Timer; // Never use Serial.print inside this ISR. Will hang the system bool TimerHandler(struct repeating_timer *t) { + (void) t; + static bool toggle = false; static int timeRun = 0; diff --git a/examples/ISR_Timers_Array_Simple/ISR_Timers_Array_Simple.ino b/examples/ISR_Timers_Array_Simple/ISR_Timers_Array_Simple.ino index a49970b..b5707c5 100644 --- a/examples/ISR_Timers_Array_Simple/ISR_Timers_Array_Simple.ino +++ b/examples/ISR_Timers_Array_Simple/ISR_Timers_Array_Simple.ino @@ -60,6 +60,8 @@ volatile uint32_t previousMillis5s = 0; bool TimerHandler(struct repeating_timer *t) { + (void) t; + static bool toggle = false; static int timeRun = 0; diff --git a/examples/RPM_Measure/RPM_Measure.ino b/examples/RPM_Measure/RPM_Measure.ino index 2660c3d..db2a76a 100644 --- a/examples/RPM_Measure/RPM_Measure.ino +++ b/examples/RPM_Measure/RPM_Measure.ino @@ -69,6 +69,8 @@ volatile int debounceCounter; bool TimerHandler0(struct repeating_timer *t) { + (void) t; + if ( !digitalRead(SWPin) && (debounceCounter >= DEBOUNCING_INTERVAL_MS / TIMER0_INTERVAL_MS ) ) { //min time between pulses has passed diff --git a/examples/SwitchDebounce/SwitchDebounce.ino b/examples/SwitchDebounce/SwitchDebounce.ino index ff5c1d8..13ed20d 100644 --- a/examples/SwitchDebounce/SwitchDebounce.ino +++ b/examples/SwitchDebounce/SwitchDebounce.ino @@ -64,6 +64,8 @@ volatile bool SWLongPressed = false; bool TimerHandler1(struct repeating_timer *t) { + (void) t; + static unsigned int debounceCountSWPressed = 0; static unsigned int debounceCountSWReleased = 0; diff --git a/examples/TimerInterruptTest/TimerInterruptTest.ino b/examples/TimerInterruptTest/TimerInterruptTest.ino index 8fb45f3..0882f46 100644 --- a/examples/TimerInterruptTest/TimerInterruptTest.ino +++ b/examples/TimerInterruptTest/TimerInterruptTest.ino @@ -48,6 +48,8 @@ bool TimerHandler0(struct repeating_timer *t) { + (void) t; + static bool toggle0 = false; static bool started = false; @@ -70,6 +72,8 @@ bool TimerHandler0(struct repeating_timer *t) bool TimerHandler1(struct repeating_timer *t) { + (void) t; + static bool toggle1 = false; static bool started = false;