The SDL requires the application to provide an DPL implementation for various functionalities in order to keep SDL as OS-agnostic. Primarily, the SDL requires DPL implementations for interrupt registration and enable/disable, and also for a delay mechanism needed for POK programming.
The SDL DPL layer provides support for the application to define the following functionalities to be used by SDL:
These features are provided by the application by calling SDL_DPL_init() with the appropriate function pointers.
The SDL provides a sample implementation of these APIs as part of the SDL examples. The sample implementation re-uses PDK DPL APIs from the SDK in order to provide the services. This is verified with the following Operating Systems:
The existing baremetal sample DPL interface can be used, or the application may implement it's own. To use the existing sample interface:
Alternatively, the application may implement it's own DPL. An example of how to do this is shown below
Include the below file to access the APIs
Define the DPL APIs
HwiP_Object gHwiObject;
Initalize the DPL Interface