Skip to content

Commit 50d8931

Browse files
committed
Fix reported issues
1 parent 4ca3495 commit 50d8931

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/reference/api/platform/PowerManagement.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Power management
22

3-
### Sleep manager
3+
### Sleep
44

55
There is only one sleep function in Mbed OS:
66

@@ -40,6 +40,11 @@ These Mbed OS drivers can lock the deep sleep:
4040
- `CAN`.
4141
- `SerialBase`.
4242

43+
#### Example
44+
45+
[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/SleepManager_Example_1/)](https://os.mbed.com/teams/mbed_example/code/SleepManager_Example_1/file/e85412b4147e/main.cpp)
46+
47+
4348
### Idle loop
4449

4550
Idle loop is a background system thread, which scheduler executes when no other threads are ready to run. That may happen when your application is waiting for an event to happen. By default, the idle loop invokes sleep manager to enter a sleep mode. You can overwrite this behavior by providing a different handler:

0 commit comments

Comments
 (0)