diff options
author | Alexander Krutwig <alexander.krutwig@embedded-brains.de> | 2015-04-20 11:08:22 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-20 08:40:29 +0200 |
commit | 31be41653a659a52460734cb8fe1da27e6d5629e (patch) | |
tree | 098c18a376b2f180a719af07406aaadf275b3716 /cpukit/score/include/rtems/score/timecounterimpl.h | |
parent | timecounter: Honor FFCLOCK define (diff) | |
download | rtems-31be41653a659a52460734cb8fe1da27e6d5629e.tar.bz2 |
timecounter: Port to RTEMS
New test sptests/timecounter01.
Update #2271.
Diffstat (limited to 'cpukit/score/include/rtems/score/timecounterimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/timecounterimpl.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/timecounterimpl.h b/cpukit/score/include/rtems/score/timecounterimpl.h new file mode 100644 index 0000000000..dd47aacc04 --- /dev/null +++ b/cpukit/score/include/rtems/score/timecounterimpl.h @@ -0,0 +1,49 @@ +/** + * @file + * + * @ingroup ScoreTimecounter + * + * @brief Timecounter Implementation + */ + +/* + * Copyright (c) 2015 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Dornierstr. 4 + * 82178 Puchheim + * Germany + * <rtems@embedded-brains.de> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifndef _RTEMS_SCORE_TIMECOUNTERIMPL_H +#define _RTEMS_SCORE_TIMECOUNTERIMPL_H + +#include <rtems/score/timecounter.h> +#include <sys/timetc.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * @addtogroup ScoreTimecounter + * + * @{ + */ + +void _Timecounter_Initialize( void ); + +void _Timecounter_Set_clock( const struct timespec *ts ); + +/** @} */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* _RTEMS_SCORE_TIMECOUNTERIMPL_H */ |