diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-07-29 13:28:35 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-07-29 13:28:35 +0000 |
commit | 61f841306aaa11b1471db1deb00470ea48f646fd (patch) | |
tree | 0f69b278240b26d0dd4e20da5fe6de2a2b840992 /os/kernel/include/chrt.h | |
parent | 0cb6bc9b9d260beb05fcc9e2ec4d72f0ba621b71 (diff) | |
download | ChibiOS-61f841306aaa11b1471db1deb00470ea48f646fd.tar.gz ChibiOS-61f841306aaa11b1471db1deb00470ea48f646fd.tar.bz2 ChibiOS-61f841306aaa11b1471db1deb00470ea48f646fd.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6037 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/include/chrt.h')
-rw-r--r-- | os/kernel/include/chrt.h | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/os/kernel/include/chrt.h b/os/kernel/include/chrt.h index dfb2a4277..caf27747e 100644 --- a/os/kernel/include/chrt.h +++ b/os/kernel/include/chrt.h @@ -59,9 +59,10 @@ * with interrupts enabled.
*/
typedef struct {
- rtcnt_t last; /**< @brief Last measurement. */
- rtcnt_t worst; /**< @brief Worst measurement. */
rtcnt_t best; /**< @brief Best measurement. */
+ rtcnt_t worst; /**< @brief Worst measurement. */
+ rtcnt_t cumulative; /**< @brief Cumulative measurement. */
+ rtcnt_t last; /**< @brief Last measurement. */
} time_measurement_t;
/*===========================================================================*/
@@ -149,6 +150,7 @@ typedef struct { #ifdef __cplusplus
extern "C" {
#endif
+ void _rt_init(void);
bool chRTIsCounterWithin(rtcnt_t start, rtcnt_t end);
void chRTPolledDelay(rtcnt_t cycles);
void chRTTimeMeasurementObjectInit(time_measurement_t *tmp);
@@ -162,24 +164,6 @@ extern "C" { /* Module inline functions. */
/*===========================================================================*/
-/**
- * @brief Returns the current value of the system real time counter.
- * @note This function can be called from any context.
- *
- * @return The value of the system free running counter of
- * type rtcnt_t.
- *
- * @special
- */
-static inline rtcnt_t chRTGetCounterValueX(void) {
-
-#if !CH_PORT_SUPPORTS_RT
- return port_rt_get_counter_value();
-#else
- return chVTGetSystemTimeX();
-#endif
-}
-
#endif /* CH_CFG_USE_RT */
#endif /* _CHRT_H_ */
|