diff options
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;
|