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/periph/gpio: use bit-banding macros for thread-safe GPIO #5753

Closed
wants to merge 3 commits into from

Conversation

hexluthor
Copy link
Contributor

Replaces the read-modify-write operations with bitband macros from cpu/k60. Tested on cc2538dk.

@jnohlgard
Copy link
Member

If we clean up the K60 macros we could move it to cortexm_common since bit banding is a feature of most (all?) Cortex-M3 and M4 processors.

@PeterKietzmann PeterKietzmann added Area: drivers Area: Device drivers Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation labels Aug 17, 2016
@PeterKietzmann
Copy link
Member

Be aware of #6182

@jnohlgard
Copy link
Member

Needs a rewrite since #6182 was merged

@aabadie
Copy link
Contributor

aabadie commented Jun 20, 2017

@hexluthor, any chance to have this one rebased for the next release ?

@jnohlgard
Copy link
Member

I think the best solution is to rebase on top of #6916.

@aabadie aabadie modified the milestone: Release 2017.07 Jun 23, 2017
@hexluthor
Copy link
Contributor Author

Agree to all. Will try to deliver for this release.

@jnohlgard
Copy link
Member

Ping @hexluthor

@hexluthor
Copy link
Contributor Author

Sorry, I don't have time to work on this and don't want to muck it up. If anyone would like to pick up where I left off, please feel free.

@smlng
Copy link
Member

smlng commented Aug 30, 2017

likely obsolete, with rework done in #7316, #7373 and #7517

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

Any objections to close this?

@hexluthor
Copy link
Contributor Author

I'm closing this because it's hopelessly old, but the cc2538 gpio is still not thread-safe. The gpio functions should be rewritten to call the bitband functions added in #6916.

@hexluthor hexluthor closed this Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers 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.

6 participants