Added functions for deep sleep to mbxxx platform.
This commit is contained in:
parent
4b5d380c74
commit
5eabf33211
7 changed files with 151 additions and 10 deletions
25
cpu/stm32w108/board-sensors.h
Normal file
25
cpu/stm32w108/board-sensors.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/**
|
||||
* \file
|
||||
* Declarations for sensor-related functions that are
|
||||
* common to all stm32w platforms.
|
||||
*
|
||||
*
|
||||
* \author Salvatore Pitrulli <salvopitru@users.sourceforge.net>
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Remember state of sensors (if active or not), in order to
|
||||
* resume their original state after calling powerUpSensors().
|
||||
* Useful when entering in sleep mode, since all system
|
||||
* peripherals have to be reinitialized.
|
||||
*/
|
||||
void sensorsPowerDown();
|
||||
|
||||
/**
|
||||
* Resume the state of all on-board sensors on to the state
|
||||
* that they had when sensorsPowerDown() was called.
|
||||
* Useful when sensors have to be used after the micro was put
|
||||
* in deep sleep mode.
|
||||
*/
|
||||
void sensorsPowerUp();
|
Loading…
Add table
Add a link
Reference in a new issue