Disabling an ISR on ARM has 3 instructions of latency. A Memory barrier is REQUIRED to ensure proper and predictable disabling. Memory barriers are expensive, so avoid disabling if already disabled (See https://mcuoneclipse.com/2015/10/16/nvic-disabling-interrupts-on-arm-cortex-m-and-the-need-for-a-memory-barrier-instruction/)
|
||
46 | 46 |
|
47 | 47 |
|
48 | 48 |
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
49 | 54 |
|
50 | 55 |
|
51 | 56 |
|
|
||
99 | 99 |
|
100 | 100 |
|
101 | 101 |
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
102 | 107 |
|
103 | 108 |
|
104 | 109 |
|
|
||
133 | 138 |
|
134 | 139 |
|
135 | 140 |
|
141 |
|
|
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
136 | 146 |
|
137 | 147 |
|
138 | 148 |
|
|
||
245 | 245 |
|
246 | 246 |
|
247 | 247 |
|
248 |
|
|
249 |
|
|
250 |
|
|
251 |
|
|
252 |
|
|
248 | 253 |
|
249 | 254 |
|
250 | 255 |
|
|
||
290 | 295 |
|
291 | 296 |
|
292 | 297 |
|
298 |
|
|
299 |
|
|
300 |
|
|
301 |
|
|
302 |
|
|
293 | 303 |
|
294 | 304 |
|
295 | 305 |
|
|
||
68 | 68 |
|
69 | 69 |
|
70 | 70 |
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
71 | 76 |
|
72 | 77 |
|
73 | 78 |
|
|
||
143 | 143 |
|
144 | 144 |
|
145 | 145 |
|
146 |
|
|
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
|
146 | 151 |
|
147 | 152 |
|
148 | 153 |
|
|
||
258 | 258 |
|
259 | 259 |
|
260 | 260 |
|
261 |
|
|
262 |
|
|
263 |
|
|
264 |
|
|
265 |
|
|
261 | 266 |
|
262 | 267 |
|
263 | 268 |
|
|
||
342 | 347 |
|
343 | 348 |
|
344 | 349 |
|
350 |
|
|
351 |
|
|
352 |
|
|
353 |
|
|
354 |
|
|
345 | 355 |
|
346 | 356 |
|
347 | 357 |
|
|
||
428 | 438 |
|
429 | 439 |
|
430 | 440 |
|
441 |
|
|
442 |
|
|
443 |
|
|
444 |
|
|
445 |
|
|
446 |
|
|
431 | 447 |
|
432 | 448 |
|
433 | 449 |
|
|
||
456 | 472 |
|
457 | 473 |
|
458 | 474 |
|
475 |
|
|
476 |
|
|
477 |
|
|
478 |
|
|
479 |
|
|
459 | 480 |
|
460 | 481 |
|
461 | 482 |
|
|
||
123 | 123 |
|
124 | 124 |
|
125 | 125 |
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
126 | 131 |
|
127 | 132 |
|
128 | 133 |
|
|
||
127 | 127 |
|
128 | 128 |
|
129 | 129 |
|
130 |
|
|
131 |
|
|
132 |
|
|
133 |
|
|
134 |
|
|
130 | 135 |
|
131 | 136 |
|
132 | 137 |
|
|
||
29 | 29 |
|
30 | 30 |
|
31 | 31 |
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
32 | 48 |
|
33 | 49 |
|
34 | 50 |
|
|
||
65 | 81 |
|
66 | 82 |
|
67 | 83 |
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
68 | 89 |
|
69 | 90 |
|
70 | 91 |
|
|
||
73 | 73 |
|
74 | 74 |
|
75 | 75 |
|
76 |
|
|
77 | 76 |
|
78 | 77 |
|
79 | 78 |
|
|
||
84 | 83 |
|
85 | 84 |
|
86 | 85 |
|
87 |
|
|
88 | 86 |
|
89 | 87 |
|
90 | 88 |
|
91 | 89 |
|
92 |
|
|
93 | 90 |
|
94 | 91 |
|
95 | 92 |
|
|
||
99 | 96 |
|
100 | 97 |
|
101 | 98 |
|
102 |
|
|
103 | 99 |
|
104 | 100 |
|
105 | 101 |
|
|
||
1085 | 1085 |
|
1086 | 1086 |
|
1087 | 1087 |
|
1088 |
|
|
1089 | 1088 |
|
1090 |
|
|
1091 | 1089 |
|
1092 | 1090 |
|
1093 | 1091 |
|