Skip to content
Snippets Groups Projects
Commit 2773f996 authored by Jeff Gough's avatar Jeff Gough
Browse files

Ran code-format.sh

parent 444101b2
No related branches found
No related tags found
1 merge request!172Watchdog timer implemented
...@@ -35,7 +35,9 @@ int hardware_early_init(void) ...@@ -35,7 +35,9 @@ int hardware_early_init(void)
sys_cfg_wdt_t wdt_cfg = NULL; sys_cfg_wdt_t wdt_cfg = NULL;
WDT_Init(MXC_WDT0, wdt_cfg); WDT_Init(MXC_WDT0, wdt_cfg);
WDT_Enable(MXC_WDT0, 1); WDT_Enable(MXC_WDT0, 1);
WDT_SetResetPeriod(MXC_WDT0, WDT_PERIOD_2_29); /* Clocked by PCLK at 50MHz, reset at 2^29 ticks = 10.7 seconds */ WDT_SetResetPeriod(
MXC_WDT0,
WDT_PERIOD_2_29); /* Clocked by PCLK at 50MHz, reset at 2^29 ticks = 10.7 seconds */
WDT_EnableReset(MXC_WDT0, 1); WDT_EnableReset(MXC_WDT0, 1);
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment