Fixes #3193: Add pio_sm_get_enabled #3194

Open
badcf00d wants to merge 2 commits from badcf00d/patch-1 into develop
badcf00d commented 2026-09-11 16:09:01 -05:00 (Migrated from github.com)

Adds a little helper function to check if a PIO state machine is enabled

Adds a little helper function to check if a PIO state machine is enabled
lurch (Migrated from github.com) reviewed 2026-09-14 03:20:44 -05:00
@ -1098,6 +1098,19 @@ static inline void pio_sm_set_enabled(PIO pio, uint sm, bool enabled) {
pio->ctrl = (pio->ctrl & ~(1u << sm)) | (bool_to_bit(enabled) << sm);
lurch (Migrated from github.com) commented 2026-09-14 03:20:44 -05:00
 * \return true if the state machine is enabled
```suggestion * \return true if the state machine is enabled ```
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'badcf00d/patch-1:badcf00d/patch-1'
git switch 'badcf00d/patch-1'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'develop'
git merge --no-ff 'badcf00d/patch-1'
git switch 'badcf00d/patch-1'
git rebase 'develop'
git switch 'develop'
git merge --ff-only 'badcf00d/patch-1'
git switch 'badcf00d/patch-1'
git rebase 'develop'
git switch 'develop'
git merge --no-ff 'badcf00d/patch-1'
git switch 'develop'
git merge --squash 'badcf00d/patch-1'
git switch 'develop'
git merge --ff-only 'badcf00d/patch-1'
git switch 'develop'
git merge 'badcf00d/patch-1'
git push origin 'develop'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk!3194
No description provided.