osMemoryPoolNew() function
Create and Initialize a Memory Pool object.
Arguments
block_count
maximum number of memory blocks in memory pool.
block_size
memory block size in bytes.
attr
memory pool attributes; NULL: default values.
Return value
memory pool ID for reference by other functions or NULL in case of error.