-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
drivers/CAN.h
Outdated
@@ -94,11 +94,15 @@ class CAN : private NonCopyable<CAN> { | |||
* @code | |||
* #include "mbed.h" | |||
* | |||
* #if defined (DEVICE_CAN) || defined(DOXYGEN_ONLY) |
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.
Is this a good example? I would leave this defined from the example - if CAN not supported, an error comes from CAN header file
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.
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
Fix added. @0xc0170 , @AnotherButler please review. |
Actually I take that back. We cannot add it to the header file. |
Description
Improving documentation and modifying example in header to be correct. Hiding protected functions to appear on doxygen page.