Update to latest embassy-sync (non-reentrant blocking `Mutex`, `ThreadModeRawMutex` removed)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust
- Domain
- embedded-iot
Research direction
Start with src/time_driver.rs and examples/src/bin/i2c_slave.rs, then review the AtomicWaker users listed in the issue: uart, i2c, spip, miwu, and timer. Update the embassy-sync dependencies in both Cargo manifests and check each affected call site against the upstream changelog. The issue reports that cargo check --features rt,time-driver-mft16-1 passes for thumbv7em-none-eabihf; use that check to verify the changes.
Written by the indexing model from the issue text.
Description
src/time_driver.rsusesMutex::borrow(cs), which is removed. Switchalarm/queuetocritical_section::Mutex<_>(no logic change).examples/src/bin/i2c_slave.rs: replaceSignal<ThreadModeRawMutex, ()>(removed).- Review
AtomicWakerusers (uart, i2c, spip, miwu, timer): the waker must be re-registered on every poll. - Bump
embassy-syncinCargo.tomlandexamples/Cargo.toml.
Prototype: with the change above, cargo check --features rt,time-driver-mft16-1 passes for thumbv7em-none-eabihf.
Part of OpenDevicePartnership/odp-embedded-controller#60. Upstream: embassy-rs/embassy#7634 (CHANGELOG).
- Dominant language
- Rust
- Stars
- 1
- Forks
- 4
- Avg merge
- 21h 9m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenDevicePartnership/embassy-npcx
-
NPCX eSPI HAL driverMay be free again @felipebalbi claimed this 645 days ago, and no pull request is open. Open
OpenDevicePartnership/embassy-npcx#29 · 1 comment · 1 assignee ·
All issues in OpenDevicePartnership/embassy-npcx
Similar issues
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
can1357/oh-my-pi#21349 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
erkamyaman/rea-games#246 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aaif-goose/goose#13970 ·
Maintainers usually reply within 1 day
-
comp-documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ClickHouse/ClickHouse#136277 ·
Maintainers usually reply within 1 day