-
Notifications
You must be signed in to change notification settings - Fork 178
Sleep handbook improvements #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left some comments and queries for you to address.
} | ||
``` | ||
|
||
### Function reference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Query: Should this really be at the same level as idle loop? Also, should this be moved up? Right now, it looks like it's the function reference of idle loop, but it's the function reference of sleep.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'll be reference for the power management API. That's why it has the same level as the other sections.
|
||
[](http://os-doc-builder.test.mbed.com/docs/v5.7/mbed-os-api-doxy/mbed__sleep_8h_source.html) | ||
|
||
### Example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above comment.
|
||
This mode is similar to sleep but saves more power and has a longer wakeup time. It saves additional power by turning off the high-speed clocks. Because of this, you can only enter this mode when peripherals relying on high-speed clocks are not in use. Peripherals that do not rely on high-speed clocks include the LowPowerTicker, RTC and InterruptIn APIs. This mode maintains all state. | ||
|
||
#### Sleep manager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Query: Are there supposed to be two sections called "Sleep manager"? This seems confusing to me.
Some reshuffling:
I'm not sure it's the right outline, but it makes sense I think. Power management has 3 functionalities, two of which live in
If you have any ideas how to make it better please do let me know :) |
It looks like #424 overrides this one. Can I close this one? |
Never mind. I just saw the dependency note on the next one. |
None of these follow our template, so I don't want to merge them. |
What's our template? This doesn't add any docs just makes improvements to the text and renames the page, for some reason git is showing it as delete and add new stuff. |
This is our template: https://docs.internal.mbed.com/docs/master/engineers/mbed-os-user-api-class-reference.html Could we move idle loop to its own page and create an example for it? I think that would help this page. Also, I notice in the Doxygen, it's "idle hook" rather than "idle loop". Which is correct? |
@bulislaw Could you please solve the merge conflicts? |
* Rename sleep page to power management * General text improvements
Copy edit for consistent tense and precise language.
@AnotherButler