Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mBuDice SleepyCounting
mBuinoSleep.h@1:542283bfadf6, 2014-09-21 (annotated)
- Committer:
- AndyA
- Date:
- Sun Sep 21 10:59:52 2014 +0000
- Revision:
- 1:542283bfadf6
- Parent:
- 0:a03325b9f702
- Child:
- 3:a3fd27c4a161
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AndyA | 0:a03325b9f702 | 1 | #ifndef __mBuinoSleep__ |
AndyA | 0:a03325b9f702 | 2 | #define __mBuinoSleep__ |
AndyA | 0:a03325b9f702 | 3 | |
AndyA | 0:a03325b9f702 | 4 | #include "mbed.h" |
AndyA | 0:a03325b9f702 | 5 | |
AndyA | 1:542283bfadf6 | 6 | extern BusOut LEDs; |
AndyA | 0:a03325b9f702 | 7 | |
AndyA | 1:542283bfadf6 | 8 | extern DigitalIn progMode; |
AndyA | 0:a03325b9f702 | 9 | |
AndyA | 1:542283bfadf6 | 10 | extern bool sleep_CleanShutdown; |
AndyA | 0:a03325b9f702 | 11 | |
AndyA | 0:a03325b9f702 | 12 | enum sleepMode_t {Sleep, DeepSleep, PowerDown}; //, DeepPowerDown |
AndyA | 0:a03325b9f702 | 13 | |
AndyA | 1:542283bfadf6 | 14 | /// Enters the selected sleep mode |
AndyA | 0:a03325b9f702 | 15 | void mBuinoSleep(enum sleepMode_t mode); |
AndyA | 0:a03325b9f702 | 16 | |
AndyA | 1:542283bfadf6 | 17 | #endif |