-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cpu, cc2538: gpio cleanup #7320
Conversation
31f57d6
to
9ef6769
Compare
9ef6769
to
94b8f99
Compare
will rebase and resolve conflicts as soon as all required PRs are merged. |
@A-Paul thinking about starting the review? |
@@ -32,6 +32,7 @@ | |||
extern "C" { | |||
#endif | |||
|
|||
#if 0 /* USE RIOT GPIO API */ |
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.
Did you place the 0 on purpose?
*/ | ||
static inline int gpio_pp_num(gpio_t pin) | ||
{ | ||
return (gpio_port_num(pin) * 8) + gpio_pin_num(pin); |
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.
Maybe << 3 instead of *8?
|
||
#define ENABLE_DEBUG (0) | ||
#include "debug.h" | ||
|
||
/* guard this file in case no I2C device is defined */ | ||
#if I2C_NUMOF | ||
#ifdef I2C_NUMOF |
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.
For I2C_NUMOF == 0
this is also true. Does that make sense?
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 but this is changed in #9347 anyways, essentially this PR might be obsolete or at least needs major updates after the I2C rework is completed. Hence, no need for reviewing this one 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.
Then close?
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.
ack
close, will rework and open new PR later |
remove any (okay: most) dependencies on the vendor specific (TI) gpio api, to fully embrace RIOTs own hardware independent periph gpio API.
Depends on #7310, #7313, #7316, and #7318 will resolve #6650 and makes workaround in #6773 obsolete as soon as all PRs merged.