Skip to content

Commit 6274994

Browse files
committed
Fix reported issues
1 parent 31cbda3 commit 6274994

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:
@@ -69,7 +74,3 @@ After the call the processor and most components will reset, but it will not aff
6974
### Function reference
7075

7176
[![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)
72-
73-
### Example
74-
75-
[![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)