Skip to content

periph_rtt: remove RTT_NUMOF guard and init from periph_common#8543

Merged
vincent-d merged 2 commits intoRIOT-OS:masterfrom
OTAkeys:pr/rtt_clean_up
Jul 10, 2018
Merged

periph_rtt: remove RTT_NUMOF guard and init from periph_common#8543
vincent-d merged 2 commits intoRIOT-OS:masterfrom
OTAkeys:pr/rtt_clean_up

Conversation

@vincent-d
Copy link
Copy Markdown
Member

Contribution description

This align header with other periph (i.e. removes RTT_NUMOF guard which is not needed anymore).

I also added a call to rtt_init() from periph_init() but I'm not sure if it will work on every platform correctly. For instance, mulle seems to need to call rtt_init() earlier in the boot process.
So I can still remove the second commit if we don't agree on it.

Issues/PRs references

None

@vincent-d vincent-d added Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Feb 9, 2018
@vincent-d vincent-d requested a review from jnohlgard February 9, 2018 15:03
Copy link
Copy Markdown
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 to me @haukepetersen can you confirm?

@smlng smlng requested a review from haukepetersen February 12, 2018 09:37
@vincent-d
Copy link
Copy Markdown
Member Author

Do we want to wait for @haukepetersen ? Maybe @gebart could take a look as well, for mulle part?

Copy link
Copy Markdown
Member

@jnohlgard jnohlgard left a comment

Choose a reason for hiding this comment

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

Change looks fine in theory. Did not yet test on real hardware

@vincent-d
Copy link
Copy Markdown
Member Author

Can we merge this one, or should we still wait?

@basilfx
Copy link
Copy Markdown
Member

basilfx commented Apr 3, 2018

I will have to update EFM32: it uses the same hardware peripheral for RTC and RTT, so it should throw an error if both are selected.

@vincent-d
Copy link
Copy Markdown
Member Author

Since #8890 is merged, we can merge this too.

Go

@vincent-d vincent-d merged commit 071614b into RIOT-OS:master Jul 10, 2018
@vincent-d vincent-d deleted the pr/rtt_clean_up branch July 10, 2018 13:00
@cladmi cladmi added this to the Release 2018.07 milestone Jul 10, 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 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.

5 participants