Skip to content
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

Doesn't compile on Cortex-M0 #31

Open
axos88 opened this issue Aug 2, 2019 · 0 comments
Open

Doesn't compile on Cortex-M0 #31

axos88 opened this issue Aug 2, 2019 · 0 comments

Comments

@axos88
Copy link

axos88 commented Aug 2, 2019

It seems the Cortex-M0 doesn't have LDREX and STREX opcodes, so atomics are not implemented, so std::sync is not compiled into the alloc crate.

Either we should use our own implementation of Arc (using disabling interrupts or using the FreeRTOS critical sections), or figure out some way to avoid using them (at least) on platforms without atomic support

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

No branches or pull requests

1 participant