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: add GPIO_PIN() macro to periph_conf.h. #5507

Merged
merged 1 commit into from
Jun 8, 2016

Conversation

A-Paul
Copy link
Member

@A-Paul A-Paul commented Jun 3, 2016

Implement the specific GPIO_PIN() macro for cc2538 cpu. Some new code, using this macro is not working as expected without a cpu-specific implementation.
Uses a already existing macro (GPIO_PXX_TO_NUM()) from cc2538_gpio.h which has exactly the same function.
Other possible ways to implement it:
0. Define GPIO_PIN() with the same "body" as GPIO_PXX_TO_NUM().
0. Rename GPIO_PXX_TO_NUM() to GPIO_PIN() in cc2538_gpio.h.

I implemented what I assume the most obvious solution. If there is a different (and better) approach, make your proposals.

@A-Paul A-Paul added Platform: ARM Platform: This PR/issue effects ARM-based platforms 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 labels Jun 3, 2016
@hexluthor
Copy link
Contributor

@A-Paul Looks good. Eliminating GPIO_PXX_TO_NUM() in favor of GPIO_PIN() would be fine too.

@alignan
Copy link
Contributor

alignan commented Jun 6, 2016

👍

@hexluthor hexluthor added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jun 7, 2016
@hexluthor
Copy link
Contributor

@A-Paul I'm ready to merge this. Do you still consider it a WIP?

@A-Paul
Copy link
Member Author

A-Paul commented Jun 8, 2016

I'm ready to merge this. Do you still consider it a WIP?

@hexluthor, no I remove the flag. Thank you.

@A-Paul A-Paul removed the State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet label Jun 8, 2016
@hexluthor hexluthor merged commit 29f0eea into RIOT-OS:master Jun 8, 2016
@A-Paul A-Paul deleted the cc2538_add_gpio_pin branch June 8, 2016 18:53
lebrush pushed a commit to lebrush/RIOT that referenced this pull request Jun 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants