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