Skip to content

Commit 6cb6d8d

Browse files
committed
Fix reported issues
1 parent 9ac12b4 commit 6cb6d8d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/reference/api/platform/PowerManagement.md

Lines changed: 6 additions & 5 deletions
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:
@@ -59,7 +64,3 @@ void main()
5964
### Function reference
6065

6166
[![View code](https://www.mbed.com/embed/?type=library)](http://os-doc-builder.test.mbed.com/docs/v5.7/mbed-os-api-doxy/mbed__sleep_8h_source.html)
62-
63-
### Example
64-
65-
[![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)

0 commit comments

Comments
 (0)