Tomonori Kuroki / MuWatchdog

Fork of Watchdog by David Smart

Revision:
26:f7ccf62c4dd0
Parent:
25:4eecd15f0c38
Child:
27:b16166a526a2
diff -r 4eecd15f0c38 -r f7ccf62c4dd0 Watchdog.cpp
--- a/Watchdog.cpp	Mon Oct 15 12:10:15 2018 +0000
+++ b/Watchdog.cpp	Wed May 08 10:53:46 2019 +0000
@@ -220,7 +220,7 @@
 #endif
 
 /// Load timeout value in watchdog timer and enable
-void Watchdog::Configure(float s)
+void Watchdog::begin(float s)
 {
     // http://www.st.com/web/en/resource/technical/document/reference_manual/CD00171190.pdf
 
@@ -247,7 +247,7 @@
     IWDG->KR  = 0xCCCC;         // Starts the WD
 }
 
-void Watchdog::Configure(int ms)
+void Watchdog::begin(int ms)
 {
     // http://www.st.com/web/en/resource/technical/document/reference_manual/CD00171190.pdf
 
@@ -275,6 +275,16 @@
     IWDG->KR  = 0xCCCC;         // Starts the WD
 }
 
+void Watchdog::Configure(float s)
+{
+    begin(s);
+}
+
+void Watchdog::Configure(int ms)
+{
+    begin(ms);
+}
+
 /// "Service", "kick" or "feed" the dog - reset the watchdog timer
 void Watchdog::Service()
 {