Skip to content

Commit 00dd2e0

Browse files
committed
Per @hathach request
1 parent 12c4506 commit 00dd2e0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cores/arduino/WInterrupts.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ void detachInterrupt(uint32_t pin)
250250
* External Interrupt Controller NVIC Interrupt Handler
251251
*/
252252
#if defined(__SAMD51__)
253-
void InterruptHandler(__attribute__((unused)) uint32_t i)
253+
void InterruptHandler(uint32_t unused_i)
254254
{
255+
(void)unused_i;
255256
// Calling the routine directly from -here- takes about 1us
256257
// Depending on where you are in the list it will take longer
257258

libraries/Servo/src/samd/Servo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ static inline void resetTC (Tc* TCx)
172172
while (TCx->COUNT16.CTRLA.bit.SWRST);
173173
}
174174

175-
static void _initISR(Tc *tc, uint8_t channel, __attribute__((unused)) uint32_t id, IRQn_Type irqn, uint8_t gcmForTimer, uint8_t intEnableBit)
175+
static void _initISR(Tc *tc, uint8_t channel, uint32_t id, IRQn_Type irqn, uint8_t gcmForTimer, uint8_t intEnableBit)
176176
{
177+
(void)id;
177178
// Select GCLK0 as timer/counter input clock source
178179
#if defined(__SAMD51__)
179180
int idx = gcmForTimer; // see datasheet Table 14-9

0 commit comments

Comments
 (0)