-
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/periph/gpio: use bit-banding macros for thread-safe GPIO #5753
Conversation
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. |
Be aware of #6182 |
Needs a rewrite since #6182 was merged |
@hexluthor, any chance to have this one rebased for the next release ? |
I think the best solution is to rebase on top of #6916. |
Agree to all. Will try to deliver for this release. |
Ping @hexluthor |
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. |
Any objections to close this? |
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. |
Replaces the read-modify-write operations with bitband macros from
cpu/k60
. Tested oncc2538dk
.