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

mips: Correct usage of USEMODULE #8360

Merged
merged 1 commit into from
Jan 15, 2018

Conversation

neiljay
Copy link
Contributor

@neiljay neiljay commented Jan 15, 2018

In CPU definitions we should not be explicitly naming peripheral modules to use
via USEMODULE (one should use FEATURES_PROVIDED instead).
Plus add missing cpu_init() and periph_init() methods.

This addresses some issues in #8052

@neiljay neiljay added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: MIPS Platform: This PR/issue effects MIPS-based platforms labels Jan 15, 2018
Copy link
Member

@smlng smlng left a comment

Choose a reason for hiding this comment

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

looks good, just a very minor thing my IDE and GitHub complained about. Otherwise this looks good to merge.

@@ -5,5 +5,4 @@ export INCLUDES += -I$(RIOTCPU)/mips_pic32_common/include
USEMODULE += mips_pic32_common
USEMODULE += mips_pic32_common_periph

USEMODULE += periph_common
USEMODULE += periph_hwrng
USEMODULE += periph_common
Copy link
Member

Choose a reason for hiding this comment

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

please add missing new line here

@cladmi
Copy link
Contributor

cladmi commented Jan 15, 2018

Looks good to me too. I did not tested has I have no boards, just reviewed the changes.

I would just like an addition in the commit message to mention that before mips_pic32_common was wrongly declaring using periph_hwrng when its only mips_pic32mz that has hwrng support.

I added a temporary PR to run murdock and verify it makes #8227 build correctly (Build passed https://ci.riot-os.org/RIOT-OS/RIOT/8361/7a510c9a6f68b2b0b743da4f0f588637ccd17499/output.html).

In CPU definitions we should not be explicilty naming peripheral modules to use
via USEMODULE (one should use FEATURES_PROVIDED instead).
Plus add missing cpu_init() and periph_init() methods.
This commit removes periph_hwrng support from the pic32mx cpu builds as
pic32mx does not have hwrng only pic32mz does.
@neiljay neiljay force-pushed the pr/correct_usage_of_features_on_mips branch from 794dba2 to e297a71 Compare January 15, 2018 14:03
@neiljay
Copy link
Contributor Author

neiljay commented Jan 15, 2018

@sming @cladmi I've fixed those requested minor issues, @sming please approve so we can get this merged ASAP, cheers.

@smlng smlng merged commit 469a1bb into RIOT-OS:master Jan 15, 2018
@smlng smlng added this to the Release 2018.01 milestone Jan 15, 2018
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: MIPS Platform: This PR/issue effects MIPS-based platforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants