Am 24.06.2016 um 16:21 schrieb Jacob Moroni:
With this library, I was also able to include a portable version of the 
<stdatomic.h> header which allows for the successful use of C11 atomic types!

I would like to get this merged into avr-libc

What's wrong with the atomic macros already existing?

http://www.nongnu.org/avr-libc/user-manual/atomic_8h.html

A function call is rather heavyweight for something as simple as locking interrupts.

As the above macros require C99, Teacup Firmware created a similar macro set working on C89, too:

https://github.com/Traumflug/Teacup_Firmware/blob/master/memory_barrier.h


Markus

--
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. (FH) Markus Hitter
http://www.jump-ing.de/

_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to