Skip to content

Commit 11d6e33

Browse files
facchinmpillo79
authored andcommitted
soc: ra6m5: cleanup R_ICU->IELSR table during early_soc_init
In case the bootloader "forgot" to clear it up
1 parent 3cb295a commit 11d6e33

File tree

1 file changed

+4
-0
lines changed
  • soc/renesas/ra/ra6m5

1 file changed

+4
-0
lines changed

soc/renesas/ra/ra6m5/soc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ void soc_early_init_hook(void)
6868
NVIC->ITNS[i] = 0;
6969
}
7070

71+
for (int i = 0; i < BSP_ICU_VECTOR_MAX_ENTRIES; i++) {
72+
R_ICU->IELSR[i] = 0;
73+
}
74+
7175
/* Enable protection using PRCR register. */
7276
R_BSP_RegisterProtectEnable(BSP_REG_PROTECT_SAR);
7377
#endif

0 commit comments

Comments
 (0)