From 2773f996dd5ff73ccfced4a42c7561ba3a1ef82b Mon Sep 17 00:00:00 2001 From: Jeff Gough <j@jeffreygough.com> Date: Thu, 22 Aug 2019 02:32:24 +0200 Subject: [PATCH] Ran code-format.sh --- epicardium/main.c | 18 +++++++++--------- epicardium/modules/hardware.c | 4 +++- epicardium/modules/watchdog.c | 10 +++++----- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/epicardium/main.c b/epicardium/main.c index a7a63d6f8..b168f9d74 100644 --- a/epicardium/main.c +++ b/epicardium/main.c @@ -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(); diff --git a/epicardium/modules/hardware.c b/epicardium/modules/hardware.c index 2494b7ae6..279e4414d 100644 --- a/epicardium/modules/hardware.c +++ b/epicardium/modules/hardware.c @@ -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); /* diff --git a/epicardium/modules/watchdog.c b/epicardium/modules/watchdog.c index 4a1de3eca..78016251c 100644 --- a/epicardium/modules/watchdog.c +++ b/epicardium/modules/watchdog.c @@ -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); + } } -- GitLab