1.4.3.15 PAL_Initialize Function

C

SYS_MODULE_OBJ PAL_Initialize(const SYS_MODULE_INDEX index);

Summary

Initializes PRIME PAL module.

Description

This routine initializes the PAL module, making it ready for clients to use it. The initialization data is specified by the init parameter. It is a single instance module, so this function should be called only once.

Precondition

None

Parameters

ParamDescription
indexIdentifier for the instance to be initialized. Only one instance (index 0) supported.

Returns

If successful, returns a valid handle to a module instance object. Otherwise, returns SYS_MODULE_OBJ_INVALID.

Example

    int main()
    {
        PAL_Initialize(PRIME_PAL_INDEX);
    }

Remarks

None