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

Remove core peripherals from Peripherals #209

Merged
merged 3 commits into from
Feb 7, 2020
Merged

Remove core peripherals from Peripherals #209

merged 3 commits into from
Feb 7, 2020

Conversation

hannobraun
Copy link
Member

The point of this is to improve interoperability with RTFM. Interoperability is still not very good (due to the lifetimes requires all over the API), but it's a start.

I'm currently working on an example that shows how to use it with this
HAL.
Re-export `pac::CorePeripherals` as a convenient alternative.

The core peripherals don't really need to be part of `Peripherals`.
We're not actually doing anything with them; it's just slightly more
convenient for the user. Although not much convenience is lost, as the
pretty minimal changes to the examples show.

The reason I'm removing them is to improve interoperability with RTFM,
as that assumes control over the core peripherals. As of before this
commit, using this HAL with RTFM would give the user safe access to two
sets of core peripherals, which seems like asking for trouble.
@david-sawatzke david-sawatzke merged commit 199c9d0 into lpc-rs:master Feb 7, 2020
@hannobraun hannobraun deleted the rtfm branch February 12, 2020 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants