From ba416c403f53104762c9c796ffdbdd1df133705a Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 8 Jan 2014 15:11:05 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6618 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/ports/ARMCMx/chcore_v7m.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'os/rt') 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; -- cgit v1.2.3