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
adc8a8b6
Commit
adc8a8b6
authored
Jul 04, 2019
by
ch3
Browse files
feat(pycardium): Reset micropython in nlr_jump_fail()
parent
98904f56
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycardium/mphalport.c
View file @
adc8a8b6
...
...
@@ -76,15 +76,14 @@ void mp_hal_delay_us(mp_uint_t us)
* Fatal Errors
*/
extern
NORETURN
void
*
Reset_Handler
(
void
);
void
NORETURN
nlr_jump_fail
(
void
*
val
)
{
/* TODO: Report error and restart */
char
msg
[]
=
" >>> nlr_jump_fail <<<
\r\n
"
;
epic_uart_write_str
(
msg
,
sizeof
(
msg
));
while
(
1
)
{
__asm
(
"nop"
);
}
Reset_Handler
();
}
/******************************************************************************
...
...
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