Deprecated Ringbuf_Alloc, and replaced with Ringbuf_Data_Peek() and Ringbuf_Data_Put() functions. Ringbuf_Alloc() was not interrupt or thread safe.

This commit is contained in:
skarg
2015-09-09 14:54:02 +00:00
parent a36ac1ec45
commit 07bf4eba3b
11 changed files with 75 additions and 31 deletions
+3 -1
View File
@@ -60,8 +60,10 @@ extern "C" {
bool Ringbuf_Put_Front(
RING_BUFFER * b, /* ring buffer structure */
uint8_t * data_element);
volatile uint8_t *Ringbuf_Alloc(
volatile uint8_t *Ringbuf_Data_Peek(
RING_BUFFER * b);
bool Ringbuf_Data_Put(
RING_BUFFER * b, volatile uint8_t *data_element);
/* Note: element_count must be a power of two */
void Ringbuf_Init(
RING_BUFFER * b, /* ring buffer structure */