-
Notifications
You must be signed in to change notification settings - Fork 208
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
critical_section
implementations
#87
Comments
I'm working on the SpiDevice trait but it seems like before anything is workable there is work that needs to be done for the 1.0 release of |
You can use the |
I've just abandoned #90. We are semi-blocked on both |
|
I believe |
With the upcoming release of
critical-section
, default implementations for each arch are being removed. Instead, they should be implemented by the HALs/PAC on a per chip basis. This allows critical sections to be correctly implemented for dual-core chips, and or take advantage of hardware semaphores instead of spin locking.A note on Xtensa implementations, we should not be disabling interrupts for our critical sections, this means the
waiti
instruction will never return. Instead, we should be raising thePS.INTLEVEL
accordingly. See esp-rs/xtensa-lx#20.The new release isn't out yet, but we should track the implementations we'll need here.
The text was updated successfully, but these errors were encountered: