diff options
author | Gabriel Moyano <gabriel.moyano@dlr.de> | 2022-05-20 11:30:02 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-23 09:09:03 +0200 |
commit | 5ccf9605ddfd0a226f7f1c6c3ecde8623b82c837 (patch) | |
tree | 4c52b771835c26304c4964268990db654a96b01f /cpukit/include/sys | |
parent | timepps.h: PPS_SYNC defined by default (diff) | |
download | rtems-5ccf9605ddfd0a226f7f1c6c3ecde8623b82c837.tar.bz2 |
timecounter.h: Add _Timecounter_Discipline()
Update #2349.
Diffstat (limited to 'cpukit/include/sys')
-rw-r--r-- | cpukit/include/sys/timepps.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 <rtems/score/atomic.h> #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_ */ |