From 83ad85a7acecbb8de6f526c0f95fb2e5cd211539 Mon Sep 17 00:00:00 2001 From: Rahix <rahix@rahix.de> Date: Thu, 22 Aug 2019 18:32:43 +0200 Subject: [PATCH] hotfix(epicardium): Disable watchdog Signed-off-by: Rahix <rahix@rahix.de> --- epicardium/main.c | 5 +++++ epicardium/modules/hardware.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/epicardium/main.c b/epicardium/main.c index 9f0e725b..5e38e0bf 100644 --- a/epicardium/main.c +++ b/epicardium/main.c @@ -105,7 +105,12 @@ int main(void) } /* Watchdog petting */ +#if 0 + /* + * Disabled for this release. + */ watchdog_clearer_init(); +#endif LOG_DEBUG("startup", "Starting FreeRTOS ..."); vTaskStartScheduler(); diff --git a/epicardium/modules/hardware.c b/epicardium/modules/hardware.c index f7cca08d..1173977a 100644 --- a/epicardium/modules/hardware.c +++ b/epicardium/modules/hardware.c @@ -32,6 +32,10 @@ int hardware_early_init(void) /* * Watchdog timer */ +#if 0 + /* + * Disabled for this release. + */ sys_cfg_wdt_t wdt_cfg = NULL; WDT_Init(MXC_WDT0, wdt_cfg); @@ -45,6 +49,7 @@ int hardware_early_init(void) MXC_WDT0, WDT_PERIOD_2_27); /* Clocked by PCLK at 50MHz, reset at 2^27 ticks = 2.7 seconds */ WDT_EnableReset(MXC_WDT0, 1); +#endif /* * I2C bus for onboard peripherals (ie. PMIC, BMA400, BHI160, BME680, -- GitLab