3.1.2 PAL_Init Function

C

PAL_Status_t PAL_Init(void)

Summary

Initialization of PAL

Description

This function initializes the timers array and initializes the PAL layer variables

Precondition

SYS_TIME_Initialize() should have been called before calling this function.

Parameters

None.

Returns

PAL_SUCCESS - if PAL initialization is successful

PAL_FAILURE - otherwise

Example

PAL_Status_t retVal = PAL_FAILURE;

retVal = PAL_Init();
if (PAL_SUCCESS =! retVal)
{
    while(1);
}

Remarks

This routine is called by the PHY layer during initialization. So, user can directly uses PAL APIs.