We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13b3eb3 commit 39c2112Copy full SHA for 39c2112
cores/arduino/wiring.c
@@ -65,8 +65,11 @@ static volatile TCB_t* _timer =
65
&TCB1;
66
#elif defined(MILLIS_USE_TIMERB2)
67
&TCB2;
68
-#else
+#elif defined(MILLIS_USE_TIMERB3)
69
&TCB3;
70
+#else
71
+// fallback to TCB0 (every platform has it)
72
+&TCB0;
73
#endif
74
75
#if defined(MILLIS_USE_TIMERB0)
@@ -75,8 +78,11 @@ ISR(TCB0_INT_vect)
78
ISR(TCB1_INT_vect)
76
79
77
80
ISR(TCB2_INT_vect)
81
82
ISR(TCB3_INT_vect)
83
84
85
+ISR(TCB0_INT_vect)
86
87
{
88
// copy these to local variables so they can be stored in registers
0 commit comments