MemInit() function
The function MemInit creates memory pools for stack and heap. The stack pool is used for threads and queues stacks allocations. The heap pool is used for threads, timers, mutex, semaphores, message queues and events flags control block object memory allocations. The size of stack and heap pools are user configured using the RTOS2_BYTE_POOL_STACK_SIZE and RTOS2_BYTE_POOL_HEAP_SIZE flags.
Return value
status code that indicates the execution status of the function.
![]()
if (MemInit() == osOK)
MemInit() is called by 1 function and calls 1 function:
![]()
MemInit()
MemInit() reads 3 variables and writes 1 variable:
![]()
MemInit()