greg@454: /* greg@454: This file is part of CanFestival, a library implementing CanOpen Stack. greg@454: greg@454: Copyright (C): Edouard TISSERANT and Francis DUPIN greg@454: greg@454: See COPYING file for copyrights details. greg@454: greg@454: This library is free software; you can redistribute it and/or greg@454: modify it under the terms of the GNU Lesser General Public greg@454: License as published by the Free Software Foundation; either greg@454: version 2.1 of the License, or (at your option) any later version. greg@454: greg@454: This library is distributed in the hope that it will be useful, greg@454: but WITHOUT ANY WARRANTY; without even the implied warranty of greg@454: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU greg@454: Lesser General Public License for more details. greg@454: greg@454: You should have received a copy of the GNU Lesser General Public greg@454: License along with this library; if not, write to the Free Software greg@454: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA greg@454: */ greg@454: greg@454: #ifndef __TIMERSCFG_H__ greg@454: #define __TIMERSCFG_H__ greg@454: greg@454: #include greg@454: #include greg@454: greg@454: // Time unit : RTAI's timers count, 64bit signed greg@454: #define TIMEVAL RTIME greg@454: #define TIMEVAL_MAX ((long long)(~0ULL>>1)) greg@454: greg@454: #define MS_TO_TIMEVAL(ms) nano2count((RTIME)ms*1000000) greg@454: #define US_TO_TIMEVAL(us) nano2count((RTIME)us*1000) greg@454: greg@454: #define TASK_HANDLE pthread_t greg@454: greg@454: #endif