Discussion Forum

Circular buffer and memory pool in RTX

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Nia Luan
Posted
12-Feb-2010 22:02 GMT
Toolset
ARM
New! Circular buffer and memory pool in RTX

Hi there,

How Can I insert the structure of the circular buffer inside the memory pool (mpool)?

/*----------------------------------- This is the memory pool declaration
------------------------------------ */
_declare_box (mpool,sizeof(T_MEAS),4);/* Dynamic Memory pool */

/*----------------------------- This is the circular buffer
----------------------------- */
typedef struct{ u8 *Buffer_Begin; u8 *Buffer_Write; u8 *Buffer_Read; u16 Buffer_Size; u16 Buffer_Count;
}buf_x_Buffer;

Can any one help !

Nia

Next Thread | Thread List | Previous Thread Start a Thread | Settings