Introduction - If you have any usage issues, please Google them yourself
This a stm32 memory allocation procedures, the idea is as follows:
Divide the memory into blocks.
Memory pool is divided into fixed-size memory block.
The establishment of a memory state table, corresponding to each block, how many blocks, the state table has the number of elements, one by one correspondence.
The value of the state table to determine whether the block is available (0 is available, for other values that are occupied, and the number of memory blocks occupied by the value of the number)