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@0:a03325b9f702, 2014-09-21 (annotated)
- Committer:
- AndyA
- Date:
- Sun Sep 21 10:08:58 2014 +0000
- Revision:
- 0:a03325b9f702
- Child:
- 1:542283bfadf6
First Commit
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 | 0:a03325b9f702 | 6 | #ifndef _DontSleepLEDs_ |
AndyA | 0:a03325b9f702 | 7 | extern BusOut LEDs(LED1, LED2, LED3, LED4, LED5, LED6, LED7); |
AndyA | 0:a03325b9f702 | 8 | #endif |
AndyA | 0:a03325b9f702 | 9 | |
AndyA | 0:a03325b9f702 | 10 | #ifndef _DontControlProgMode_ |
AndyA | 0:a03325b9f702 | 11 | extern DigitalIn progMode(P0_3); |
AndyA | 0:a03325b9f702 | 12 | #endif |
AndyA | 0:a03325b9f702 | 13 | |
AndyA | 0:a03325b9f702 | 14 | #ifndef _CleanPowerDown_ |
AndyA | 0:a03325b9f702 | 15 | #define _CleanPowerDown_ 0 |
AndyA | 0:a03325b9f702 | 16 | #endif |
AndyA | 0:a03325b9f702 | 17 | |
AndyA | 0:a03325b9f702 | 18 | enum sleepMode_t {Sleep, DeepSleep, PowerDown}; //, DeepPowerDown |
AndyA | 0:a03325b9f702 | 19 | |
AndyA | 0:a03325b9f702 | 20 | void mBuinoSleep(enum sleepMode_t mode); |
AndyA | 0:a03325b9f702 | 21 | |
AndyA | 0:a03325b9f702 | 22 | #endif |