Skip to content
Snippets Groups Projects
Commit 3338d8a5 authored by rahix's avatar rahix Committed by schneider
Browse files

fix(api): Make reset interrupt non-maskable


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 83ef5357
No related branches found
No related tags found
1 merge request!96Changes for the Cycle of Life [MANUAL MERGE]
...@@ -27,6 +27,9 @@ void api_interrupt_init(void) ...@@ -27,6 +27,9 @@ void api_interrupt_init(void)
for (int i = 0; i < EPIC_INT_NUM; i++) { for (int i = 0; i < EPIC_INT_NUM; i++) {
int_enabled[i] = false; int_enabled[i] = false;
} }
/* Reset interrupt is always enabled */
int_enabled[EPIC_INT_RESET] = true;
} }
int epic_interrupt_enable(api_int_id_t int_id) int epic_interrupt_enable(api_int_id_t int_id)
...@@ -41,7 +44,7 @@ int epic_interrupt_enable(api_int_id_t int_id) ...@@ -41,7 +44,7 @@ int epic_interrupt_enable(api_int_id_t int_id)
int epic_interrupt_disable(api_int_id_t int_id) int epic_interrupt_disable(api_int_id_t int_id)
{ {
if (int_id >= EPIC_INT_NUM) { if (int_id >= EPIC_INT_NUM || int_id == EPIC_INT_RESET) {
return -EINVAL; return -EINVAL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment