esp-rs / esp32-hal

A hardware abstraction layer for the esp32 written in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use standardized mutex

arjanmels opened this issue · comments

We should use standardized Mutex. Currently combination if interrupt free section and spinlock is used.

I think we should align to: https://github.com/rust-embedded/wg/blob/master/rfcs/0377-mutex-trait.md (for tracking: rust-embedded/wg#395). However it seems that it is not fully crystallized yet. (The syntax that requires to take a mutex reference to lock, is a bit weird.)

As discussed in #31 we will follow the developments in rust-embedded on this. After #31 is merged this issue can be closed.

#31 is merged