From 1f4c5b118fa5c97fbd6f67dff365dfc96c8f7588 Mon Sep 17 00:00:00 2001 From: Steven Cartmell Date: Mon, 8 Jan 2018 15:17:45 +0000 Subject: [PATCH] Fix Watchdog::stop on K64F target WDOG_Disable will suspend the watchdog until a reset is triggered instead of stopping it altogether. Deinit will disable it until it is reinitialized. --- .../TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/watchdog.c b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/watchdog.c index e72f04db30..48ffc50ad1 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/watchdog.c +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/watchdog.c @@ -84,7 +84,7 @@ void hal_watchdog_kick(void) watchdog_status_t hal_watchdog_stop(void) { - WDOG_Disable(WDOG); + WDOG_Deinit(WDOG); return WATCHDOG_STATUS_OK; }