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/sam21: removed superfluous gpio_init_sercom #5910

Merged
merged 1 commit into from
Oct 7, 2016

Conversation

haukepetersen
Copy link
Contributor

#5743 introduced some inconsistencies, one step towards cleanup...

The gpio_init_sercom function was a duplication of the existing gpio_init_mux, where the exiting function is the more general one, as the mux inititalization is not only valid for the sercom module...

This function was a duplication of the existing gpio_init_mux,
where the exiting function is the more general one, as the mux
inititalization is not only valid for the sercom module...
@haukepetersen haukepetersen added 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 labels Oct 5, 2016
@haukepetersen haukepetersen added this to the Release 2016.10 milestone Oct 5, 2016
@PeterKietzmann PeterKietzmann added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Oct 6, 2016
@PeterKietzmann
Copy link
Member

ACK from my side. Tested with gnrc_networking on a samr21-xpro. However, I'd like to wait for @keestux before approving this PR

Copy link
Contributor

@keestux keestux left a comment

Choose a reason for hiding this comment

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

I agree that gpio_init_sercom can go.

However, I like the use of macros like PORT_PMUX_PMUXE(mux), instead of some magic with constants. But that can be changed in gpio_init_mux

ACK

@PeterKietzmann
Copy link
Member

Thanks for your feedback @keestux. ACK and go

@PeterKietzmann PeterKietzmann merged commit 9063121 into RIOT-OS:master Oct 7, 2016
@haukepetersen haukepetersen deleted the fix_sam0_muxstuff branch October 12, 2016 08:16
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.

4 participants