/* * MPSDiagnostics.h * mpsLinkProcessor * * Created by Stephen Norum on 4/16/09. * Copyright 2009 SLAC National Accelerator Laboratory. All rights reserved. * */ #ifndef MPSDIAGNOSTICS_H #define MPSDIAGNOSTICS_H #ifdef __cplusplus extern "C" { #endif #ifdef __rtems__ #include #include static inline uint32_t read_timebase() { uint32_t v; CPU_Get_timebase_low(v); return v; } #endif #ifdef __cplusplus } #endif #endif