summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/timecounter.h
diff options
context:
space:
mode:
authorGabriel Moyano <gabriel.moyano@dlr.de>2022-05-20 11:29:57 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-05-23 09:08:52 +0200
commitac4ea5366482dad9150c5aaa652b71c00960741f (patch)
tree3394feefad6d0f5a422923f28218bea7d2c174d3 /cpukit/include/rtems/score/timecounter.h
parentkern_tc.c: Replace FreeBSD event mechanism by adding pointers to function (diff)
downloadrtems-ac4ea5366482dad9150c5aaa652b71c00960741f.tar.bz2
score: Rename tc_getfrequency()
Rename tc_getfrequency() to _Timecounter_Get_frequency(). Update #2349.
Diffstat (limited to '')
-rw-r--r--cpukit/include/rtems/score/timecounter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/timecounter.h b/cpukit/include/rtems/score/timecounter.h
index 1ecfc02085..ae1e2612f8 100644
--- a/cpukit/include/rtems/score/timecounter.h
+++ b/cpukit/include/rtems/score/timecounter.h
@@ -292,6 +292,14 @@ void _Timecounter_Set_NTP_update_second(
*/
void _Timecounter_NTP_update_second(int64_t *adjustment, time_t *newsec);
+/**
+ * @brief Gets the frequency in Hz of the current timecounter at some time
+ * point during the call.
+ *
+ * @return Returns the frequency in Hz.
+ */
+uint64_t _Timecounter_Get_frequency(void);
+
/** @} */
#ifdef __cplusplus