Skip to content

Commit 1330914

Browse files
committed
Some code makeup
1 parent 02d8bf8 commit 1330914

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cores/arduino/WInterrupts.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121

2222
#include <string.h>
2323

24-
static voidFuncPtr ISRcallback[EXTERNAL_NUM_INTERRUPTS];
24+
static voidFuncPtr ISRcallback[EXTERNAL_NUM_INTERRUPTS];
2525
static EExt_Interrupts ISRlist[EXTERNAL_NUM_INTERRUPTS];
26-
static uint32_t nints; // Stores total number of attached interrupts
26+
static uint32_t nints; // Stores total number of attached interrupts
2727

2828

2929
/* Configure I/O interrupt sources */
3030
static void __initialize()
3131
{
32-
memset(ISRlist, 0, sizeof(ISRlist));
32+
memset(ISRlist, 0, sizeof(ISRlist));
3333
memset(ISRcallback, 0, sizeof(ISRcallback));
3434
nints = 0;
3535

@@ -88,7 +88,7 @@ void attachInterrupt(uint32_t pin, voidFuncPtr callback, uint32_t mode)
8888
{
8989
// Store interrupts to service in order of when they were attached
9090
// to allow for first come first serve handler
91-
uint32_t current=0;
91+
uint32_t current = 0;
9292

9393
// Check if we already have this interrupt
9494
for (current=0; current<nints; current++) {
@@ -100,7 +100,7 @@ void attachInterrupt(uint32_t pin, voidFuncPtr callback, uint32_t mode)
100100
// Need to make a new entry
101101
nints++;
102102
}
103-
ISRlist[current] = in; // List with nr of interrupt in order of when they were attached
103+
ISRlist[current] = in; // List of interrupt in order of when they were attached
104104
ISRcallback[current] = callback; // List of callback adresses
105105

106106
// Look for right CONFIG register to be addressed

0 commit comments

Comments
 (0)