Skip to content
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

Closed
wants to merge 11 commits into from
Closed

Conversation

smlng
Copy link
Member

@smlng smlng commented Jul 5, 2017

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.

@smlng smlng requested review from PeterKietzmann, A-Paul and a user July 5, 2017 12:12
@smlng smlng self-assigned this Jul 5, 2017
@smlng smlng added Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation Area: drivers Area: Device drivers Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR State: waiting for other PR State: The PR requires another PR to be merged first labels Jul 5, 2017
@smlng smlng added this to the Release 2017.10 milestone Jul 5, 2017
@smlng smlng added State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jul 17, 2017
@smlng
Copy link
Member Author

smlng commented Jul 17, 2017

will rebase and resolve conflicts as soon as all required PRs are merged.

@smlng smlng removed this from the Release 2018.01 milestone Jan 12, 2018
@tcschmidt
Copy link
Member

@A-Paul thinking about starting the review?

@@ -32,6 +32,7 @@
extern "C" {
#endif

#if 0 /* USE RIOT GPIO API */
Copy link
Member

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);
Copy link
Member

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
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

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

Then close?

Copy link
Member Author

Choose a reason for hiding this comment

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

ack

@smlng
Copy link
Member Author

smlng commented Jun 18, 2018

close, will rework and open new PR later

@smlng smlng closed this Jun 18, 2018
@smlng smlng deleted the cpu/cc2538/gpio_cleanup branch July 5, 2018 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers State: waiting for other PR State: The PR requires another PR to be merged first State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GPIO Port shift in cc2538 is inconsistent
3 participants