Added functions and example for deep sleep on mb851.
The added function let a process to make the system go into deep sleep for maximum power saving. The udp-ipv6-example shows how to use these new functions.
This commit is contained in:
parent
5a4a39afb3
commit
6655c876f2
11 changed files with 483 additions and 16 deletions
10
cpu/stm32w108/sleep.h
Normal file
10
cpu/stm32w108/sleep.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
/* Enter system in deep sleep 1 (core power domain is fully
|
||||
* powered down and sleep timer is active).
|
||||
* Execution is suspended for a given number of seconds.
|
||||
*
|
||||
* Pay attention! All system peripherals (including sensors) have
|
||||
* to be reinitialized before being used again. UART, LEDs and
|
||||
* real timers are automatically reinitialized. */
|
||||
|
||||
void sleep_seconds(int seconds);
|
Loading…
Add table
Add a link
Reference in a new issue