-
Notifications
You must be signed in to change notification settings - Fork 178
FileHandle: Mbed OS 5.12 updates #992
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
Cover changes in ARMmbed/mbed-os#9797
Make minor edits, mostly for style, and fix some existing oddly formatted bullets while I'm at it.
Edit file, mostly for consistent tense across docs.
docs/api/platform/FileHandle.md
Outdated
|
||
Having a device open through a `FileHandle` may cost power, especially if open for input. For example, for `UARTSerial` to be able to receive data, the system must not enter deep sleep, so deep sleep is prevented while the `UARTSerial` is active. | ||
|
||
To permit power saving, you can close or destroy the device, or you can indicate that you do not currently require input or output by calling `FileHandle::enable_input` or `FileHandle::enable_output`. Disabling input or output effectively suspends the device in that direction, which can permit power saving. |
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.
What do we mean by destroy the device to permit power saving? This sounds counterintuitive to me.
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.
That should be close or destroy the FileHandle
(by which you're accessing the device, which would then permit the device to shut down).
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.
Thanks for the PR. I've left one query.
Clarify sentence based on suggestion in comments.
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.
Nice work on this 👍 Thanks
Cover changes in ARMmbed/mbed-os#9797