Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
bf88fd75
Verified
Commit
bf88fd75
authored
Aug 11, 2019
by
Rahix
Browse files
fix(api): Make reset interrupt non-maskable
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
941fb5c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
epicardium/api/interrupt-sender.c
View file @
bf88fd75
...
...
@@ -27,6 +27,9 @@ void api_interrupt_init(void)
for
(
int
i
=
0
;
i
<
EPIC_INT_NUM
;
i
++
)
{
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
)
...
...
@@ -41,7 +44,7 @@ int epic_interrupt_enable(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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment