Versions Compared

Key

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

Description

Initialize Kernel Abstraction Layer (KAL).

Files

kal.h / kal.c

Prototype

Arguments

p_cfg

Pointer to KAL configuration structure. DEF_NULL can be used.

p_err

Pointer to variable that will receive the return error code from this function.

KALRTOS_ERR_NONE

KALRTOS_ERR_OS

KALRTOS_ERR_ALREADY_INIT

KALRTOS_ERR_MEM_ALLOC

KALRTOS_ERR_POOL_INIT

Returned Value

None.

Callers

Application, if using specific memory segment.

Products, otherwise.

Notes / Warnings

  1. Mem_Init() must be called before calling KAL_Init().

Usage Example

Excerpt