diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-01-08 15:11:05 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-01-08 15:11:05 +0000 |
commit | ba416c403f53104762c9c796ffdbdd1df133705a (patch) | |
tree | 5da78e43990bf10a0f48e03691959af809bb96ab /os/rt/ports | |
parent | b8774f299a75182b40023c6639ab918e13d7e5a2 (diff) | |
download | ChibiOS-ba416c403f53104762c9c796ffdbdd1df133705a.tar.gz ChibiOS-ba416c403f53104762c9c796ffdbdd1df133705a.tar.bz2 ChibiOS-ba416c403f53104762c9c796ffdbdd1df133705a.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6618 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/ports')
-rw-r--r-- | os/rt/ports/ARMCMx/chcore_v7m.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/os/rt/ports/ARMCMx/chcore_v7m.h b/os/rt/ports/ARMCMx/chcore_v7m.h index 4add4d9a9..404e87411 100644 --- a/os/rt/ports/ARMCMx/chcore_v7m.h +++ b/os/rt/ports/ARMCMx/chcore_v7m.h @@ -538,6 +538,11 @@ static inline void port_wait_for_interrupt(void) { #endif
}
+/**
+ * @brief Returns the current value of the realtime counter.
+ *
+ * @return The realtime counter value.
+ */
static inline rtcnt_t port_rt_get_counter_value(void) {
return DWT->CYCCNT;
|