#include <stdio.h>

#ifndef _UTIL_H_
#define _UTIL_H_

#define Mic_secs_Per_Second     1000000.0

#define Null        0 /* Value of a Null pointer */
#define true        1
#define false       0
typedef int         Boolean;

#define RET_OK      0
#define RET_ERR     1

#if defined (_TMS320C6X)
#define CPU_CLK_MHZ                 983
#define Get_TimeStamp_U32(x)        x = TSCL;
#elif __ARM_ARCH_7A__
#define CPU_CLK_MHZ                 1000
#define Get_TimeStamp_U32(x)        x = ARM_CCNT_Read();
#endif

#endif // _UTIL_H_

