2021-03-01 04:19 AM
Hi, everyone.
I am quite new to embedded system development and am now composing functions to wake up Cortex-M4 with STM32F412RG embedded on Arduino using timers after making Cortex-M4 deep sleep mode.
In realising the functionality above, peripheral clocks (maybe RTC?) should be operated by some sources, since deep sleep mode turns off the CPU clock and the system clock while sleep mode just halts the CPU clock.
Do you have any suggestion on how to implement functions for peripheral clocks for Interrupt Service Routine which interrupts sleeping modes?
The interruption can be both of timer and external input.