Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fleur
firmware
Commits
c8dbb334
Verified
Commit
c8dbb334
authored
Aug 24, 2019
by
Rahix
Browse files
fix(watchdog): Don't enable when debugger is connected
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
781d4129
Changes
1
Hide whitespace changes
Inline
Side-by-side
epicardium/modules/watchdog.c
View file @
c8dbb334
...
...
@@ -16,6 +16,13 @@ static void watchdog_clearer_callback()
void
watchdog_init
()
{
/*
* Don't enable the the watchdog when a debugger is connected.
*/
if
((
CoreDebug
->
DHCSR
&
CoreDebug_DHCSR_C_DEBUGEN_Msk
)
!=
0
)
{
return
;
}
sys_cfg_wdt_t
wdt_cfg
=
NULL
;
WDT_Init
(
MXC_WDT0
,
wdt_cfg
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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