This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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

0