diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-07-29 15:13:52 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-07-29 15:13:52 +0000 |
commit | f569bcec23452c190248aab184a125f3a52e2eb8 (patch) | |
tree | ee7b4be89b879597c2d82a49616d963696fbf78c /os/kernel/include/chsys.h | |
parent | ca4b2f91b7a24abeb6ea7fa43c1816397fb966c4 (diff) | |
download | ChibiOS-f569bcec23452c190248aab184a125f3a52e2eb8.tar.gz ChibiOS-f569bcec23452c190248aab184a125f3a52e2eb8.tar.bz2 ChibiOS-f569bcec23452c190248aab184a125f3a52e2eb8.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6040 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/include/chsys.h')
-rw-r--r-- | os/kernel/include/chsys.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/os/kernel/include/chsys.h b/os/kernel/include/chsys.h index 0fd07b96b..722323d54 100644 --- a/os/kernel/include/chsys.h +++ b/os/kernel/include/chsys.h @@ -182,18 +182,16 @@ /**
* @brief Returns the current value of the system real time counter.
- * @note This function can be called from any context.
+ * @note This function is only available if the port layer supports the
+ * option @p CH_PORT_SUPPORTS_RT.
*
* @return The value of the system realtime counter of
- * type rtcnt_t. If the port does not support a
- * realtime counter then zero is returned.
+ * type rtcnt_t.
*
* @xclass
*/
#if CH_PORT_SUPPORTS_RT || defined(__DOXYGEN__)
#define chSysGetRealtimeCounterX() (rtcnt_t)port_rt_get_counter_value()
-#else
-#define chSysGetRealtimeCounterX() 0
#endif
/*===========================================================================*/
@@ -208,6 +206,10 @@ extern "C" { void chSysTimerHandlerI(void);
syssts_t chSysGetAndLockX(void);
void chSysRestoreLockX(syssts_t sts);
+#if CH_PORT_SUPPORTS_RT
+ bool chSysIsCounterWithinX(rtcnt_t cnt, rtcnt_t start, rtcnt_t end);
+ void chSysPolledDelayX(rtcnt_t cycles);
+#endif
#ifdef __cplusplus
}
#endif
|