Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

is a pointer to a variable that holds an error code:

OS_ERR_NONE

if If a memory block is available and returned to the application.

OS_ERR_MEM_INVALID_P_MEM

if If OS_CFG_ARG_CHK_EN is set to 1 in os_cfg.h: if p_mem is a NULL pointer.

OS_ERR_MEM_NO_FREE_BLKS

if If the memory partition does not contain additional memory blocks to allocate.

...