Revised for integration

Dependents:   Integrated wheelchairControlSumer2019 wheelchairControlSumer2019 wheelchaircontrol5 ... more

Revision:
7:06baa3e5382d
Parent:
6:40f189c7795b
--- a/Watchdog.cpp	Mon Mar 02 21:36:00 2015 +0000
+++ b/Watchdog.cpp	Wed Jun 26 18:19:57 2019 +0000
@@ -21,8 +21,8 @@
 /// @author Bernaérd Remond
 ///
 
-#define LPC
-//#define ST_NUCLEO
+//#define LPC
+#define ST_NUCLEO
 
 
 #include "mbed.h"
@@ -44,7 +44,8 @@
     else {
         wdreset = false; 
     }
-*/        
+*/       
+        printf("in constructor\r\n");
         wdreset = false; 
 #endif
 
@@ -57,11 +58,11 @@
     uint32_t clk = SystemCoreClock / 16;    // WD has a fixed /4 prescaler, PCLK default is /4
     LPC_WDT->WDTC = (uint32_t)(timeout * (float)clk);
     LPC_WDT->WDMOD = 0x3;                   // Enabled and Reset
-#endif   
+#endif  
+ 
 #ifdef ST_NUCLEO
     // see http://embedded-lab.com/blog/?p=9662    
     #define LsiFreq (45000)
-    
     uint16_t PrescalerCode;
     uint16_t Prescaler;
     uint16_t ReloadValue;
@@ -128,5 +129,3 @@
 bool Watchdog::WatchdogCausedReset() {
     return wdreset;
 }
-
-