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
No related merge requests found
Pipeline #2810 passed
......@@ -99,15 +99,15 @@ int main(void)
/* Watchdog petting */
if (xTaskCreate(
vWatchdogTask,
(const char *)"Watchdog",
configMINIMAL_STACK_SIZE,
NULL,
tskIDLE_PRIORITY + 6,
NULL) != pdPASS) {
LOG_CRIT("startup", "Failed to create %s task!", "Watchdog");
abort();
}
vWatchdogTask,
(const char *)"Watchdog",
configMINIMAL_STACK_SIZE,
NULL,
tskIDLE_PRIORITY + 6,
NULL) != pdPASS) {
LOG_CRIT("startup", "Failed to create %s task!", "Watchdog");
abort();
}
LOG_DEBUG("startup", "Starting FreeRTOS ...");
vTaskStartScheduler();
......
......@@ -35,7 +35,9 @@ int hardware_early_init(void)
sys_cfg_wdt_t wdt_cfg = NULL;
WDT_Init(MXC_WDT0, wdt_cfg);
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);
/*
......
......@@ -7,9 +7,9 @@
void vWatchdogTask(void *pvParameters)
{
while(1){
LOG_INFO("watchdog", "bees");
WDT_ResetTimer(MXC_WDT0);
vTaskDelay(8000 / portTICK_PERIOD_MS);
}
while (1) {
LOG_INFO("watchdog", "bees");
WDT_ResetTimer(MXC_WDT0);
vTaskDelay(8000 / portTICK_PERIOD_MS);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment