mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
2d81738cb9
- Previously the pulse counter used GCC's built-in functions for atomic memory access. This PR changes this to use C11 atomics instead: - Use of C11 atomics instead of atomic build-in functions makes the code more portable and readable. - Previously pulse_counter_reset() did not use an atomic function, so that resets would be racy. (E.g. on the 8-bit AVR platform an 16-bit store is not atomic, unless special care (like using C11 atomics) is taken.) |
||
---|---|---|
.. | ||
include | ||
Makefile | ||
pulse_counter_saul.c | ||
pulse_counter.c |