RTEMS 6.1-rc1
|
Simple Ring Buffer Functionality. More...
#include <rtems.h>
Go to the source code of this file.
Data Structures | |
struct | Ring_buffer_t |
Macros | |
#define | RINGBUF_QUEUE_LENGTH 128 |
#define | Ring_buffer_Initialize(_buffer) |
#define | Ring_buffer_Destory(_buffer) |
#define | Ring_buffer_Is_empty(_buffer) ( (_buffer)->head == (_buffer)->tail ) |
#define | Ring_buffer_Is_full(_buffer) ( (_buffer)->head == ((_buffer)->tail + 1) % RINGBUF_QUEUE_LENGTH ) |
#define | Ring_buffer_Add_character(_buffer, _ch) |
#define | Ring_buffer_Remove_character(_buffer, _ch) |
Simple Ring Buffer Functionality.
This file provides simple ring buffer functionality.
#define Ring_buffer_Add_character | ( | _buffer, | |
_ch | |||
) |
#define Ring_buffer_Destory | ( | _buffer | ) |
#define Ring_buffer_Initialize | ( | _buffer | ) |
#define Ring_buffer_Remove_character | ( | _buffer, | |
_ch | |||
) |