Mayank Gupta / Mbed OS pelion-example-frdm

Dependencies:   FXAS21002 FXOS8700Q

Embed: (wiki syntax)

« Back to documentation index

pal.h File Reference

pal.h File Reference

PAL. This file contains the general API to initiate and destroy the PAL component. This is part of the PAL service API. More...

Go to the source code of this file.

Functions

palStatus_t pal_init (void)
 PAL initialization. This function calls each module's initialization function (if one exists) to allocate the required resources and initiate them.
int32_t pal_destroy (void)
 PAL destruction. This function calls each module's destroy function (if one exists) to free resources.

Detailed Description

PAL. This file contains the general API to initiate and destroy the PAL component. This is part of the PAL service API.

Definition in file pal.h.


Function Documentation

int32_t pal_destroy ( void   )

PAL destruction. This function calls each module's destroy function (if one exists) to free resources.

Definition at line 147 of file pal_init.c.

palStatus_t pal_init ( void   )

PAL initialization. This function calls each module's initialization function (if one exists) to allocate the required resources and initiate them.

Returns:
PAL_SUCCESS(0) in case of success, a negative value indicating a specific error code in case of failure.

Definition at line 52 of file pal_init.c.