Library for Modtronix NZ32 STM32 boards, like the NZ32-SC151, NZ32-SB072, NZ32-SE411 and others

Revision:
15:3fd3c1ce01be
Parent:
13:328bfac0e686
Child:
17:86034c970ea0
--- a/nz32s.cpp	Sat Aug 13 11:51:46 2016 +1000
+++ b/nz32s.cpp	Sat Aug 13 12:57:48 2016 +1000
@@ -42,7 +42,11 @@
 // STATIC OBJECTS /////////////////////////////////////////////////////////////
 DigitalOut NZ32S::led1(LED1);
 DigitalIn  NZ32S::btn1(USER_BUTTON, PullDown);
-IWDG_HandleTypeDef NZ32S::hiwdg;    //Watchdog Timer
+#if (NZ32S_USE_WWDG==1)
+WWDG_HandleTypeDef NZ32S::hwwdg;    //Windowed Watchdog Timer, is stopped during low power mode
+#else
+IWDG_HandleTypeDef NZ32S::hiwdg;    //Independent Watchdog Timer, is NOT stopped during low power mode!
+#endif
 #if (DONT_USE_A13_A14 == 0)
 DigitalInOut NZ32S::enableFastCharge(PA_14, PIN_INPUT, PullNone, 0);
 #endif