-
Notifications
You must be signed in to change notification settings - Fork 143
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
[driver] RTC MCP7941X #748
Conversation
CI is failing because you have to update the documentation by running the script
and remove trailing whitespaces. |
jo #fail, thanks |
Please also include an example for one of the existing development boards. |
ok I'll make a black pill board example |
Works on real hardware ✅ |
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.
Thanks!
Co-authored-by: odinthenerd <[email protected]>
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* chip datasheet available at http://ww1.microchip.com/downloads/en/DeviceDoc/22266A.pdf |
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.
Ups.
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.
@rleh What is the issue? Just the formatting or anything else I am to blind to see right now?
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.
The datasheet link should go into the module.lb instead of the license header. This particular formatting makes it look like it's part of the license as well.
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.
Unrelated, the struct mcp7941x
should also have a /// @ingroup modm_driver_mcp7941x
on top of it, otherwise doxypress will not group it correctly (sadly).
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.
Line 10 does not belong in the license header. I probably copy-pasted it in there by mistake.
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.
Of course, I was blind ... Will fix it as well.
Running doxypress on the example causes a segfault too:
|
This is the line in doxypress where it triggers the message: https://github.com/copperspice/doxypress/blob/1e286c033d4ab8499e42de9016e4f196f66f5f0f/src/classdef.cpp#L2535 It's a doxypress bug. Change the class to
and it appears to work for me. @salkinium Could you try if it works for you? I'll make a PR to fix it if it works. |
Yes, that works for me both in the example and in the docs generator! |
I can confirm the your fix solves the issue! template < class I2cMaster >
-class Mcp7941x : public modm::mcp7941x,
+class Mcp7941x : public mcp7941x,
public modm::I2cDevice<I2cMaster, 2> |
Ok, I'll make a PR now and later try to fix the bug in doxypress. |
somewhere in the initialization I messed something up, I think I need a second pair of eyes