Skip to content
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

PwmOut.h: Added destructor and call to pwmout_free in HAL. #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcuschangarm
Copy link
Contributor

Destructor is necessary to achieve low power on the Wearable Reference Design.

@marcuschangarm
Copy link
Contributor Author

@0xc0170

@autopulated
Copy link
Contributor

Please consider whether this means this class should be implementing other operators too: cf. rule of 3/5: https://en.wikipedia.org/wiki/Rule_of_three_(C%2B%2B_programming)

@marcuschangarm
Copy link
Contributor Author

@autopulated Yes, both the copy and assignment operator should be implemented.

@bremoran
Copy link
Collaborator

Other operators can come later. This is basic functionality that is required.

@bremoran
Copy link
Collaborator

With this change, we should explicitly delete the copy and move constructors, the copy and move assignment operators.

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