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

We need to handle PACs support for critical-section #72

Closed
michalfita opened this issue Dec 22, 2023 · 0 comments
Closed

We need to handle PACs support for critical-section #72

michalfita opened this issue Dec 22, 2023 · 0 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@michalfita
Copy link
Collaborator

Digging in changes to svd2rust and how other PACs did things I figured we need critical-section feature in HAL that would enable critical-section dependency in PACs. I'm adding this to PACs at the moment, the next step is to fix things here.

To do this nicely we need breaking change is how rt feature is handled, to simplify things and avoid viscous cycle of bizarre feature names.

@michalfita michalfita added bug Something isn't working dependencies Pull requests that update a dependency file labels Dec 22, 2023
michalfita added a commit that referenced this issue Dec 23, 2023
Since Rust 1.60 it's possible to enable dependencies' features only for included dependencies.

That's going to work for `rt` and `critical-section` and some other features in future.
michalfita added a commit that referenced this issue Dec 23, 2023
michalfita added a commit that referenced this issue Dec 23, 2023
```
let pac = hal::pac::Peripherals::take().unwrap();
```
instead of
```
let pac = hal::pac::Peripherals::take().unwrap();
```
michalfita added a commit that referenced this issue Dec 23, 2023
michalfita added a commit that referenced this issue Dec 23, 2023
It would be nice to have a tool that extracts all basic check from workflow to be run before commit.

Not working on machine I normally burn for this stuff has downsides, as I rush things...
michalfita added a commit that referenced this issue Jan 3, 2024
michalfita added a commit that referenced this issue Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant