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