Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Watchdog by
Diff: Watchdog.cpp
- Revision:
- 14:30665d9afe68
- Parent:
- 13:7987b6c88225
- Child:
- 15:e0e4c2268558
--- a/Watchdog.cpp Sun Dec 18 17:08:13 2016 +0000
+++ b/Watchdog.cpp Fri Feb 03 04:53:54 2017 +0000
@@ -111,8 +111,11 @@
return (v & 0x00ff) + ((v >> 8) & 0x00ff);
}
-//#define WDT_CLOCK 32768U // 32.768 kHz
-#define WDT_CLOCK 40000U // 40 kHz
+#if defined(TARGET_STM32F0)
+ #define WDT_CLOCK 40000U // 40 kHz
+#else
+ #define WDT_CLOCK 32768U // 32.768 kHz
+#endif
/// Load timeout value in watchdog timer and enable
void Watchdog::Configure(float s)
