Skip to content

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

Merged
merged 4 commits into from
Mar 7, 2019

Conversation

kjbracey
Copy link
Contributor

@kjbracey kjbracey commented Mar 6, 2019

Cover changes in ARMmbed/mbed-os#9797

Amanda Butler added 2 commits March 6, 2019 18:44
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.

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.
Copy link
Contributor

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.

Copy link
Contributor Author

@kjbracey kjbracey Mar 7, 2019

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).

Copy link
Contributor

@AnotherButler AnotherButler left a 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.
Copy link
Contributor

@AnotherButler AnotherButler left a 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

@AnotherButler AnotherButler merged commit e070374 into ARMmbed:development Mar 7, 2019
@kjbracey kjbracey deleted the FileHandle branch March 8, 2019 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants