-
Notifications
You must be signed in to change notification settings - Fork 2.1k
drivers/pn532: adapt to new i2c API (recreated) #9458
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
drivers/pn532: adapt to new i2c API (recreated) #9458
Conversation
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.
Looks good, previous comments from @smlng are addressed. Let's wait for Travis and merge.
@MichelRottleuthner Travis is complaining, there are some styles issues. |
7f4c4a5
to
d688375
Compare
the style issues must have been there berfore, added a (not so nice) fix anyway. |
@MichelRottleuthner I have no idea... maybe @kaspar030 has an idea ? |
Murdock uses the ubuntu 16.04 version, 1.72. Travis seems to be even older. Maybe that can be updated? @aabadie? |
Yeah, it would be great to update it so we don't have to add voodoo things here. |
d688375
to
df2f6ac
Compare
I prefer dropping Travis and switch to CircleCI like I did in #8729. The advantage is that it uses the official docker image riotdocker so the tools versions will be same has the ones on Murdock. |
How do it works for this PR ? |
df2f6ac
to
5ab21b7
Compare
Revert the changes related to cppcheck and only keep the changes related to I2C. If Travis fails, it won't block the merge button anyway. |
5ab21b7
to
5591764
Compare
reverted cpp changes. Is the upgrade to the CI planned before the i2c rework branch will be merged? |
@aabadie you mean we can merge it right now without taking care of Travis ? |
Yes |
Let's go then ! |
drivers/pn532/pn532.c
Outdated
@@ -80,7 +80,7 @@ | |||
|
|||
#if ENABLE_DEBUG | |||
#define PRINTBUFF printbuff | |||
static void printbuff(char *buff, unsigned len) | |||
static void printbuff(uint8_t *buff, unsigned len) |
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 leftover of changes related to cppcheck ?
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.
nope - it's a slightly unrelated change but without this compiling with debug enabled will fail
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.
I would also revert this and open a separate PR. A least, it should not be part of the same commit containing I2C changes
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.
reverted. shall I open the other PR against new_i2c_if too? (master should work though)
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.
I think it should be fine against master.
#endif | ||
} | ||
else { | ||
if (mode == PN532_SPI) { |
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.
It should be PN532_I2C
, no ?
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.
no. the condition is used to init chip select pin (SPI)
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.
Ok, I see
@aabadie I'll let you push the button then :) |
5591764
to
3dc7dbc
Compare
drivers/pn532: adapt to new i2c API (recreated)
drivers/pn532: adapt to new i2c API (recreated)
drivers/pn532: adapt to new i2c API (recreated)
Contribution description
clone of #9432 - with all the changes addressed. Accidentally dleted the old branch and wasn't able to reopen the PR.
Issues/PRs references
#6577