Compiling Sparklet on GHS

Some of the configurations associated with RH850 port is given in the below section.

To integrate Sparklet library, add folder include and the Sparklet library file libsparklet.a in folder library into the workspace. The following example is a Sparklet library integration for a GHS IDE RH850 project.

Sparklet Lib

Sparklet Library

The headers in include directory can be included by adding the directory’s path in the project workspace, similar to the following example:

Sparklet RS API

Include Directory

Platform specific macro RS_PLAT_RH850 should be included in preprocessor directive accordingly. The following example is for RH850 project in GHS IDE:

GHS IDE

RH850 Specific preprocessor macros

SGUI_DATA_OFFEST and RS_DATA_OFFSET should be set when the images are stored in an external flash device.

The headers <sgui.h>, <sparklet_api.h> and <rs_api.h> should be included in the files where Sparklet APIs are used.