Added Restart(by RESET) function from Standby mode only for some Nucleo boards (STM32 series)

Dependencies:   LPC1114_WakeInterruptIn

Dependents:   Check_StandBy

Fork of WakeUp by Erik -

Example program using "Standby function" for Nucleo series is here.
/users/kenjiArai/code/Check_StandBy/

Revision:
25:2bd9df8c3ac8
Parent:
23:69a0c843e4bd
--- a/Device/WakeUp_STM_RTC.cpp	Tue Jul 04 07:59:06 2017 +0000
+++ b/Device/WakeUp_STM_RTC.cpp	Thu Sep 21 21:53:16 2017 +0000
@@ -1,4 +1,11 @@
 #ifdef TARGET_STM
+// added by JH1PJL 2017-9-21
+#if defined(TARGET_NUCLEO_F446RE) || defined(TARGET_NUCLEO_F411RE)\
+ || defined(TARGET_NUCLEO_F401RE)\
+ || defined(TARGET_NUCLEO_L152RE) || defined(TARGET_NUCLEO_L073RZ)\
+ || defined(TARGET_NUCLEO_L053R8)
+        // use WakeUp_STM32_others.cpp
+#else
 
 #include "WakeUp.h"
 #include "rtc_api.h"
@@ -9,7 +16,7 @@
 //Only the IRQ number the alarm is connected to differs. Any errors
 //with RTC_IRQn/RTC_Alarm_IRQn in them are related to this
 #if defined(TARGET_M4) || defined(TARGET_M3)
-#define RTC_IRQ     RTC_Alarm_IRQn               
+#define RTC_IRQ     RTC_Alarm_IRQn           
 #else
 #define RTC_IRQ     RTC_IRQn
 #endif
@@ -98,7 +105,7 @@
     __enable_irq();         //Alarm is set, so irqs can be enabled again
     
     //Enable everything else
-    NVIC_SetVector(RTC_IRQ, (uint32_t)WakeUp::irq_handler);
+    NVIC_SetVector(RTC_IRQ, (uint32_t)WakeUp::irq_handler);  
     NVIC_EnableIRQ(RTC_IRQ);    
 }
 
@@ -122,5 +129,5 @@
     //RTC, we assume it is accurate enough without calibration
 }
 
-
+#endif  // TARGET_NUCLEO_F446RE (added by JH1PJL 2017-9-21)
 #endif