Skip to content

improve can documentation #8385

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 3 commits into from
Oct 13, 2018
Merged

improve can documentation #8385

merged 3 commits into from
Oct 13, 2018

Conversation

aashishc1988
Copy link
Contributor

Description

Improving documentation and modifying example in header to be correct. Hiding protected functions to appear on doxygen page.

[ ] Fix
[x ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Breaking change

@aashishc1988
Copy link
Contributor Author

@AnotherButler

drivers/CAN.h Outdated
@@ -94,11 +94,15 @@ class CAN : private NonCopyable<CAN> {
* @code
* #include "mbed.h"
*
* #if defined (DEVICE_CAN) || defined(DOXYGEN_ONLY)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a good example? I would leave this defined from the example - if CAN not supported, an error comes from CAN header file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, right now the CAN header file won't give an error telling you that CAN is not supported. May be, we should add that there and skip it in the example all together?

…hould. Add "CAN_NOT_SUPPORTED" guard to header instead of example
@aashishc1988
Copy link
Contributor Author

Fix added. @0xc0170 , @AnotherButler please review.

@aashishc1988
Copy link
Contributor Author

Actually I take that back. We cannot add it to the header file.

@cmonr cmonr dismissed 0xc0170’s stale review October 12, 2018 15:51

Changes reverted. Please re-review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants