Skip to content

Update DeepSleepLock #316

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
Oct 30, 2017
Merged

Conversation

c1728p9
Copy link
Contributor

@c1728p9 c1728p9 commented Oct 27, 2017

Update the DeepSleepLock page along with moving content from this page to a new sleep manager page.

Remove content that is not relevant, add new example and update
description.
@c1728p9
Copy link
Contributor Author

c1728p9 commented Oct 28, 2017

@sg- can you review this?

Copy link
Contributor

@sg- sg- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff! Have a look at the RAII intro from CriticalSection. Probably a few things to steal and move here as well. https://github.com/ARMmbed/Handbook/pull/298/files

Add a page for the SleepManager API. This contains general sleep
information, along with the sleep manager API and an example
which uses it.
@c1728p9
Copy link
Contributor Author

c1728p9 commented Oct 28, 2017

@sg- I updated this PR to talk about the constructor and destructor of RAII objects as #298 does.
CC: @deepikabhavnani

Make minor formatting change for proper rendering.
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. I made a minor formatting fix.


### Example

[![View code](https://os.mbed.com/users/c1728p9/code/SleepManager_Example_1/)](https://os.mbed.com/users/c1728p9/code/SleepManager_Example_1/file/e85412b4147e/main.cpp)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Query: Is there any way to put this in the same teams location as the other examples?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I updated this to point to that.

Update URL to use the mbed_example team for the example link rather
than a personal repository.
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.

LGTM 👍

@AnotherButler AnotherButler merged commit 425dde9 into ARMmbed:new_engine Oct 30, 2017
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