ryan-summers / shared-bus-rtic

Provides macros and type definitions for using shared-bus in an RTIC application
MIT License
16 stars 3 forks source link

Adding Thumbv6 support and CI #4

Closed ryan-summers closed 4 years ago

ryan-summers commented 4 years ago

This PR fixes #3 by adding support for Thumbv6 by shimming in an atomic bool layer for platforms (thumbv6) that don't support atomic operations. This will have to be completed on a platform-by-platform basis, as we require a means to acquire a critical section.

This follows the design in https://github.com/jamesmunns/bbqueue/blob/38d28a0df2ecb812fac90e31565ff2875696b3dc/core/src/bbbuffer.rs#L984-L1037