Minimal version of mBuino Sleep

This is a cut down version of mBuino_Sleep that doesn't control any IO lines.

This version should work fine on any NXP LPC11Uxx CPUs although you will need to check the external pin pullup/down status, any conflicts between external and internal pulls will increase power usage.

If using this version on an mBuino ensure you disable the pullup on P0_3 (on by default for any unconfigured GPIO lines) and turn all the LEDs off before entering sleep. Failing to do so will increase the sleep mode power draw.

See mBuino_Sleep for usage details.

Committer:
AndyA
Date:
Sun Sep 28 09:24:32 2014 +0000
Revision:
2:9c5cd0f7aa8a
Parent:
1:219e1147c6fa
Added watchdog modes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AndyA 0:af76f9a302ea 1 #ifndef __mBuinoSleep__
AndyA 0:af76f9a302ea 2 #define __mBuinoSleep__
AndyA 0:af76f9a302ea 3
AndyA 0:af76f9a302ea 4 #include "mbed.h"
AndyA 0:af76f9a302ea 5
AndyA 2:9c5cd0f7aa8a 6 enum sleepMode_t {Sleep, DeepSleep, DeepSleepWD, PowerDown, PowerDownWD, DeepPowerDown};
AndyA 0:af76f9a302ea 7
AndyA 0:af76f9a302ea 8 void mBuinoSleep(enum sleepMode_t mode);
AndyA 0:af76f9a302ea 9
AndyA 0:af76f9a302ea 10 #endif