1.4.4.15 OSAL_Initialize Function

C

OSAL_RESULT OSAL_Initialize(void)

Summary

Performs OSAL initialization.

Description

This function performs OSAL initialization .This function should be called near the start of main in an application that will use an underlying RTOS. This permits the RTOS to perform any one time initialization before the application attempts to create drivers or other items that may use the RTOS. Typical actions performed by OSAL_Initialize would be to allocate and prepare any memory pools for later use.

Precondition

None.

Parameters

None.

Returns

OSAL_RESULT_TRUE - Initialization completed successfully.

Example

int main()
{
    OSAL_Initialize();
    
    App_Init();
    OSAL_Start();
}

Remarks

None.