Added Restart(by RESET) function from Standby mode only for some Nucleo boards (STM32 series)
Dependencies: LPC1114_WakeInterruptIn
Fork of WakeUp by
Example program using "Standby function" for Nucleo series is here.
/users/kenjiArai/code/Check_StandBy/
Diff: WakeUp.h
- Revision:
- 25:2bd9df8c3ac8
- Parent:
- 24:65c04a02ad45
--- a/WakeUp.h Tue Jul 04 07:59:06 2017 +0000 +++ b/WakeUp.h Thu Sep 21 21:53:16 2017 +0000 @@ -91,9 +91,24 @@ */ static void calibrate(void); + /** + * Enter Standby mode then Reset + * (available only for confirmed Nucleo boards) + * + * @param ms required time in milliseconds + */ +#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) + // added by JH1PJL 2017-9-21 + static void standby_then_reset(uint32_t ms); + +#endif private: static Callback<void()> callback; static void irq_handler(void); static float cycles_per_ms; + static bool use_reset; // added by JH1PJL 2017-9-21 }; \ No newline at end of file