qpc/doxygen/snippets/qmp_init.c

16 lines
530 B
C
Raw Normal View History

2015-12-24 14:33:20 -05:00
QMPool myMemPool1; /* memory pool object #1 (global) */
2015-09-04 12:08:22 -04:00
static uint8_t memPoolSto1[512]; /* storage for a memory pool #1 */
2015-12-24 14:33:20 -05:00
QMPool myMemPool2; /* memory pool object #2 (global) */
2015-09-04 12:08:22 -04:00
static uint8_t memPoolSto2[1024]; /* storage for a memory pool #2 */
QMPool_init(&myMemPool1,
memPoolSto1,
sizeof(memPoolSto1),
2015-12-24 14:33:20 -05:00
10U); /* memory blocks of 10 bytes each */
2015-09-04 12:08:22 -04:00
QMPool_init(&myMemPool2,
memPoolSto2,
sizeof(memPoolSto2),
2015-12-24 14:33:20 -05:00
25U); /* memory blocks of 25 bytes each */