21
21
22
22
#include <string.h>
23
23
24
- static voidFuncPtr ISRcallback [EXTERNAL_NUM_INTERRUPTS ];
24
+ static voidFuncPtr ISRcallback [EXTERNAL_NUM_INTERRUPTS ];
25
25
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
27
27
28
28
29
29
/* Configure I/O interrupt sources */
30
30
static void __initialize ()
31
31
{
32
- memset (ISRlist , 0 , sizeof (ISRlist ));
32
+ memset (ISRlist , 0 , sizeof (ISRlist ));
33
33
memset (ISRcallback , 0 , sizeof (ISRcallback ));
34
34
nints = 0 ;
35
35
@@ -88,7 +88,7 @@ void attachInterrupt(uint32_t pin, voidFuncPtr callback, uint32_t mode)
88
88
{
89
89
// Store interrupts to service in order of when they were attached
90
90
// to allow for first come first serve handler
91
- uint32_t current = 0 ;
91
+ uint32_t current = 0 ;
92
92
93
93
// Check if we already have this interrupt
94
94
for (current = 0 ; current < nints ; current ++ ) {
@@ -100,7 +100,7 @@ void attachInterrupt(uint32_t pin, voidFuncPtr callback, uint32_t mode)
100
100
// Need to make a new entry
101
101
nints ++ ;
102
102
}
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
104
104
ISRcallback [current ] = callback ; // List of callback adresses
105
105
106
106
// Look for right CONFIG register to be addressed
0 commit comments