From ac4ea5366482dad9150c5aaa652b71c00960741f Mon Sep 17 00:00:00 2001 From: Gabriel Moyano Date: Fri, 20 May 2022 11:29:57 +0200 Subject: score: Rename tc_getfrequency() Rename tc_getfrequency() to _Timecounter_Get_frequency(). Update #2349. --- cpukit/include/sys/timetc.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpukit/include/sys') diff --git a/cpukit/include/sys/timetc.h b/cpukit/include/sys/timetc.h index 5cdfdfe9b3..1ef58b378d 100644 --- a/cpukit/include/sys/timetc.h +++ b/cpukit/include/sys/timetc.h @@ -16,6 +16,10 @@ #ifndef _KERNEL #error "no user-serviceable parts inside" #endif +#else /* __rtems__ */ +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ #endif /* __rtems__ */ /*- @@ -36,6 +40,7 @@ struct vdso_timehands32; typedef u_int timecounter_get_t(struct timecounter *); #else /* __rtems__ */ typedef uint32_t timecounter_get_t(struct timecounter *); +#define tc_getfrequency _Timecounter_Get_frequency #endif /* __rtems__ */ typedef void timecounter_pps_t(struct timecounter *); typedef uint32_t timecounter_fill_vdso_timehands_t(struct vdso_timehands *, @@ -104,4 +109,9 @@ void cpu_tick_calibration(void); SYSCTL_DECL(_kern_timecounter); #endif +#ifdef __rtems__ +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* __rtems__ */ #endif /* !_SYS_TIMETC_H_ */ -- cgit v1.2.3