From 5ccf9605ddfd0a226f7f1c6c3ecde8623b82c837 Mon Sep 17 00:00:00 2001 From: Gabriel Moyano Date: Fri, 20 May 2022 11:30:02 +0200 Subject: timecounter.h: Add _Timecounter_Discipline() Update #2349. --- cpukit/include/sys/timepps.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpukit/include/sys') diff --git a/cpukit/include/sys/timepps.h b/cpukit/include/sys/timepps.h index 35dfdcbf66..030c734477 100644 --- a/cpukit/include/sys/timepps.h +++ b/cpukit/include/sys/timepps.h @@ -27,6 +27,10 @@ #ifdef __rtems__ #include #define PPS_SYNC +#define hardpps _Timecounter_Discipline +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ #endif /* __rtems__ */ #define PPS_API_VERS_1 1 @@ -295,4 +299,9 @@ time_pps_kcbind(pps_handle_t handle, const int kernel_consumer, #endif /* KERNEL */ +#ifdef __rtems__ +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* __rtems__ */ #endif /* !_SYS_TIMEPPS_H_ */ -- cgit v1.2.3