3 * @brief Common header includes
9 /** Defines required to allow various C standard functions to be used **/
10 #define _POSIX_C_SOURCE 200809L
12 #define _XOPEN_SOURCE 600
14 /** Determine if we're running on the BBB **/
18 //#warning This software was designed for the BeagleBone Black. Some features may not work.
21 /** The current API version **/
42 /**Converts a timeval to a double**/
43 #define TIMEVAL_TO_DOUBLE(tv) ((tv).tv_sec + 1e-6 * ((tv).tv_usec))
44 /**Takes the tv1-tv2 between two timevals and returns the result as a double*/
45 #define TIMEVAL_DIFF(tv1, tv2) ((tv1).tv_sec - (tv2).tv_sec + 1e-6 * ((tv1).tv_usec - (tv2).tv_usec))
48 extern bool PathExists(const char * path);
49 extern bool DirExists(const char * path);