Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit b7d8f4b

Browse files
authored
v1.3.1 using float for interval
### Releases v1.3.1 1. Using `float` instead of `ulong` for better interval accuracy
1 parent f010d88 commit b7d8f4b

File tree

9 files changed

+26
-0
lines changed

9 files changed

+26
-0
lines changed

Diff for: examples/Argument_Complex/Argument_Complex.ino

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ volatile pinStruct myOutputPins = { LED_BUILTIN, 0, 1 };
4747

4848
bool TimerHandler(struct repeating_timer *t)
4949
{
50+
(void) t;
51+
5052
static bool toggle = false;
5153

5254
//timer interrupt toggles pins

Diff for: examples/Argument_None/Argument_None.ino

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050

5151
bool TimerHandler0(struct repeating_timer *t)
5252
{
53+
(void) t;
54+
5355
static bool toggle0 = false;
5456

5557
#if (TIMER_INTERRUPT_DEBUG > 0)
@@ -65,6 +67,8 @@ bool TimerHandler0(struct repeating_timer *t)
6567

6668
bool TimerHandler1(struct repeating_timer *t)
6769
{
70+
(void) t;
71+
6872
static bool toggle1 = false;
6973

7074
#if (TIMER_INTERRUPT_DEBUG > 0)

Diff for: examples/Argument_Simple/Argument_Simple.ino

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ RPI_PICO_Timer ITimer2(2);
4444

4545
bool TimerHandler1(struct repeating_timer *t)
4646
{
47+
(void) t;
48+
4749
static bool toggle1 = false;
4850

4951
#if (TIMER_INTERRUPT_DEBUG > 0)
@@ -61,6 +63,8 @@ bool TimerHandler1(struct repeating_timer *t)
6163

6264
bool TimerHandler2(struct repeating_timer *t)
6365
{
66+
(void) t;
67+
6468
static bool toggle2 = false;
6569

6670
#if (TIMER_INTERRUPT_DEBUG > 0)

Diff for: examples/Change_Interval/Change_Interval.ino

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ volatile uint32_t Timer1Count = 0;
5252

5353
bool TimerHandler0(struct repeating_timer *t)
5454
{
55+
(void) t;
56+
5557
static bool toggle0 = false;
5658

5759
// 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)
7072

7173
bool TimerHandler1(struct repeating_timer *t)
7274
{
75+
(void) t;
76+
7377
static bool toggle1 = false;
7478

7579
// Flag for checking to be sure ISR is working as Serial.print is not OK here in ISR

Diff for: examples/ISR_16_Timers_Array_Complex/ISR_16_Timers_Array_Complex.ino

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ RPI_PICO_ISR_Timer ISR_Timer;
8080
// Never use Serial.print inside this ISR. Will hang the system
8181
bool TimerHandler(struct repeating_timer *t)
8282
{
83+
(void) t;
84+
8385
static bool toggle = false;
8486
static int timeRun = 0;
8587

Diff for: examples/ISR_Timers_Array_Simple/ISR_Timers_Array_Simple.ino

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ volatile uint32_t previousMillis5s = 0;
6060

6161
bool TimerHandler(struct repeating_timer *t)
6262
{
63+
(void) t;
64+
6365
static bool toggle = false;
6466
static int timeRun = 0;
6567

Diff for: examples/RPM_Measure/RPM_Measure.ino

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ volatile int debounceCounter;
6969

7070
bool TimerHandler0(struct repeating_timer *t)
7171
{
72+
(void) t;
73+
7274
if ( !digitalRead(SWPin) && (debounceCounter >= DEBOUNCING_INTERVAL_MS / TIMER0_INTERVAL_MS ) )
7375
{
7476
//min time between pulses has passed

Diff for: examples/SwitchDebounce/SwitchDebounce.ino

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ volatile bool SWLongPressed = false;
6464

6565
bool TimerHandler1(struct repeating_timer *t)
6666
{
67+
(void) t;
68+
6769
static unsigned int debounceCountSWPressed = 0;
6870
static unsigned int debounceCountSWReleased = 0;
6971

Diff for: examples/TimerInterruptTest/TimerInterruptTest.ino

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848

4949
bool TimerHandler0(struct repeating_timer *t)
5050
{
51+
(void) t;
52+
5153
static bool toggle0 = false;
5254
static bool started = false;
5355

@@ -70,6 +72,8 @@ bool TimerHandler0(struct repeating_timer *t)
7072

7173
bool TimerHandler1(struct repeating_timer *t)
7274
{
75+
(void) t;
76+
7377
static bool toggle1 = false;
7478
static bool started = false;
7579

0 commit comments

Comments
 (0)