summaryrefslogtreecommitdiffstats
path: root/cpukit/include/sys/timepps.h
diff options
context:
space:
mode:
authorGabriel Moyano <gabriel.moyano@dlr.de>2022-05-20 11:29:55 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-05-23 09:08:48 +0200
commitbf61753a9209233119c8e5723463d2e21ef56e2a (patch)
tree5c97aaab48721bc7b3fa030f6da7ca7a77273136 /cpukit/include/sys/timepps.h
parentkern_ntptime.c: Add lmax() qmin() definitions (diff)
downloadrtems-bf61753a9209233119c8e5723463d2e21ef56e2a.tar.bz2
kern_tc.c: Add atomic dependencies required by the PPS API
Update #2349.
Diffstat (limited to 'cpukit/include/sys/timepps.h')
-rw-r--r--cpukit/include/sys/timepps.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/include/sys/timepps.h b/cpukit/include/sys/timepps.h
index 01212f0b43..5703381ffa 100644
--- a/cpukit/include/sys/timepps.h
+++ b/cpukit/include/sys/timepps.h
@@ -24,12 +24,19 @@
#include <sys/_ffcounter.h>
#include <sys/ioccom.h>
#include <sys/time.h>
+#ifdef __rtems__
+#include <rtems/score/atomic.h>
+#endif /* __rtems__ */
#define PPS_API_VERS_1 1
typedef int pps_handle_t;
+#ifndef __rtems__
typedef unsigned pps_seq_t;
+#else /* __rtems__ */
+typedef Atomic_Uint pps_seq_t;
+#endif /* __rtems__ */
typedef struct ntp_fp {
unsigned int integral;