Digi XBee(R) ANSI C Host Library
Platform Support

These sub-directories contain headers and source code for using the Digi XBee ANSI C Library on various target platforms. Details on each platform appear in the ports/<platform>/README.md file.

Adding New Platforms

Supporting a new hardware platform should be relatively straightforward. Start by looking at the xbee/platform.h file and the ports/xxx/platform_config.h file for a similar platform. You'll need to create a ports/yyy/platform_config.h for your new YYY platform.

Next you'll need to create two .C files with support functions:

Then set up your build system with the correct include paths, and .C files to link into your application. If you define the macro XBEE_PLATFORM_HEADER to be the name of your platform header (e.g., "ports/yyy/platform_config.h"), the xbee/platform.h file will include it automatically.