File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ condition and generating hardware reset or using Go command to execute user code
291
291
HAL_DeInit ();
292
292
293
293
// Disable all pending interrupts using NVIC
294
- for (uint8_t i = 0 ; i < ( sizeof ( NVIC -> ICER ) / sizeof ( NVIC -> ICER [ 0 ]) ); ++ i ) {
294
+ for (uint8_t i = 0 ; i < MP_ARRAY_SIZE ( NVIC -> ICER ); ++ i ) {
295
295
NVIC -> ICER [i ] = 0xFFFFFFFF ;
296
296
}
297
297
@@ -302,7 +302,7 @@ condition and generating hardware reset or using Go command to execute user code
302
302
__ISB ();
303
303
304
304
// Clear all pending interrupts using NVIC
305
- for (uint8_t i = 0 ; i < ( sizeof ( NVIC -> ICPR ) / sizeof ( NVIC -> ICPR [ 0 ]) ); ++ i ) {
305
+ for (uint8_t i = 0 ; i < MP_ARRAY_SIZE ( NVIC -> ICPR ); ++ i ) {
306
306
NVIC -> ICPR [i ] = 0xFFFFFFFF ;
307
307
}
308
308
You can’t perform that action at this time.
0 commit comments