Added functions for deep sleep to mbxxx platform.

This commit is contained in:
Salvatore Pitrulli 2011-04-27 14:45:44 +02:00
parent 4b5d380c74
commit 5eabf33211
7 changed files with 151 additions and 10 deletions

View 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();