ruuvi.drivers.c
${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
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>
22
#include "
ruuvi_driver_enabled_modules.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
31
typedef
volatile
uint32_t
ri_atomic_t
;
32
57
bool
ri_atomic_flag
(
ri_atomic_t
*
const
flag,
const
bool
set);
58
61
#endif
ruuvi_driver_enabled_modules.h
Header to enable and disable module compilation.
ri_atomic_flag
bool ri_atomic_flag(ri_atomic_t *const flag, const bool set)
Atomic flag check and set/clear function.
ri_atomic_t
volatile uint32_t ri_atomic_t
define atomic type - not portable to 8-bit.
Definition:
ruuvi_interface_atomic.h:31
src
interfaces
atomic
ruuvi_interface_atomic.h
Generated by
1.9.1