Digi XBee(R) ANSI C Host Library
Functions
xbee_platform_posix.c File Reference

Platform-specific functions for use by the XBee Driver on POSIX platform. More...

#include <time.h>
#include <sys/time.h>
#include "xbee/platform.h"

Functions

uint32_t xbee_seconds_timer ()
 Platform-specific function to return the number of elapsed seconds. More...
 
uint32_t xbee_millisecond_timer ()
 Platform-specific function to return the number of elapsed milliseconds. More...
 

Detailed Description

Platform-specific functions for use by the XBee Driver on POSIX platform.

Todo:
Create a platform unit test, one that can verify that the millisecond timer doesn't run backwards and that it matches up accurately with the seconds timer (base it on the HCS08 regression).