Skip to content

Enable critical-section by default #195

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

Merged
merged 1 commit into from
Apr 30, 2025
Merged

Enable critical-section by default #195

merged 1 commit into from
Apr 30, 2025

Conversation

Rahix
Copy link
Owner

@Rahix Rahix commented Apr 29, 2025

The new svd2rust code needs critical-section for implementing the Peripherals::take() function. This means almost all uses of avr-device will need it as well.

Rename the critical-section-impl feature to just critical-section and make it a part of the crate's default features.

Cc: @LuigiPiucco @tones111
Ref: #157

The new svd2rust code needs `critical-section` for implementing the
`Peripherals::take()` function.  This means almost all uses of
`avr-device` will need it as well.

Rename the `critical-section-impl` feature to just `critical-section`
and make it a part of the crate's default features.
@Rahix Rahix force-pushed the critical-section-default branch from 290f6f2 to cf0288f Compare April 29, 2025 23:54
Rahix added a commit to Rahix/avr-hal that referenced this pull request Apr 30, 2025
avr-device no longer has a `critical-section-impl` feature.  Instead it
now has a `critical-section` feature that is enabled by default [1].  As
such, we can drop the re-exposed feature here.

[1]: Rahix/avr-device#195
Rahix added a commit to Rahix/avr-hal that referenced this pull request Apr 30, 2025
avr-device no longer has a `critical-section-impl` feature.  Instead it
now has a `critical-section` feature that is enabled by default [1].  As
such, we can drop the re-exposed feature here.

[1]: Rahix/avr-device#195
@Rahix Rahix merged commit f23539a into main Apr 30, 2025
2 checks passed
@Rahix Rahix deleted the critical-section-default branch April 30, 2025 00:48
Rahix added a commit to Rahix/avr-hal that referenced this pull request Apr 30, 2025
avr-device no longer has a `critical-section-impl` feature.  Instead it
now has a `critical-section` feature that is enabled by default [1].  As
such, we can drop the re-exposed feature here.

[1]: Rahix/avr-device#195
Rahix added a commit to Rahix/avr-hal that referenced this pull request May 4, 2025
avr-device no longer has a `critical-section-impl` feature.  Instead it
now has a `critical-section` feature that is enabled by default [1].  As
such, we can drop the re-exposed feature here.

[1]: Rahix/avr-device#195
Rahix added a commit to Rahix/avr-hal that referenced this pull request May 5, 2025
avr-device no longer has a `critical-section-impl` feature.  Instead it
now has a `critical-section` feature that is enabled by default [1].  As
such, we can drop the re-exposed feature here.

[1]: Rahix/avr-device#195
Rahix added a commit to Rahix/avr-hal that referenced this pull request May 5, 2025
avr-device no longer has a `critical-section-impl` feature.  Instead it
now has a `critical-section` feature that is enabled by default [1].  As
such, we can drop the re-exposed feature here.

[1]: Rahix/avr-device#195
Rahix added a commit to Rahix/avr-hal that referenced this pull request May 5, 2025
avr-device no longer has a `critical-section-impl` feature.  Instead it
now has a `critical-section` feature that is enabled by default [1].  As
such, we can drop the re-exposed feature here.

[1]: Rahix/avr-device#195
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.

1 participant