ruuvi.drivers.c ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
Loading...
Searching...
No Matches
ruuvi_interface_atomic.h
Go to the documentation of this file.
1#ifndef RUUVI_INTERFACE_ATOMIC_H
2#define RUUVI_INTERFACE_ATOMIC_H
3
20#include <stdbool.h>
21#include <stdint.h>
23
25#if RI_ATOMIC_ENABLED
26# define RUUVI_NRF5_SDK15_ATOMIC_ENABLED RUUVI_NRF5_SDK15_ENABLED
27#endif
28
29#define RI_ATOMIC_FLAG_INIT 0
30
31typedef volatile uint32_t ri_atomic_t;
32
57bool ri_atomic_flag (ri_atomic_t * const flag, const bool set);
58
61#endif
Header to enable and disable module compilation.
bool ri_atomic_flag(ri_atomic_t *const flag, const bool set)
Atomic flag check and set/clear function.
volatile uint32_t ri_atomic_t
define atomic type - not portable to 8-bit.