these macros define accessories for FIFOs of any name, type and any (power of two) size
More...
these macros define accessories for FIFOs of any name, type and any (power of two) size
#define DECLARE_FIFO |
( |
|
__type, |
|
|
|
__name, |
|
|
|
__size |
|
) |
| |
Value:enum { __name##_overflow_f = (1 << 0) }; \
enum { __name##_fifo_size = (__size) }; \
typedef struct __name##_t { \
__type buffer[__name##_fifo_size];
\
} __name##_t
#define FIFO_CURSOR_TYPE
Definition: fifo_declare.h:79
#define FIFO_VOLATILE
Definition: fifo_declare.h:90
#define DEFINE_FIFO |
( |
|
__type, |
|
|
|
__name |
|
) |
| |
#define FIFO_BOOL_TYPE int |
#define FIFO_CURSOR_TYPE uint16_t |
#define FIFO_INLINE inline |
#define FIFO_SYNC __sync_synchronize() |
#define FIFO_ZERO_INIT {0} |