1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/pulse_counter
Marian Buschsieweke 2d81738cb9
drivers/pulse_counter: Use C11 atomics & bugfix
- 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.)
2019-11-26 14:04:42 +01:00
..
include drivers/pulse_counter: initial implementation 2018-01-17 06:28:13 -08:00
Makefile drivers/pulse_counter: initial implementation 2018-01-17 06:28:13 -08:00
pulse_counter_saul.c drivers/pulse_counter: refactor the prototypes of read funcs 2019-01-09 23:06:54 +01:00
pulse_counter.c drivers/pulse_counter: Use C11 atomics & bugfix 2019-11-26 14:04:42 +01:00