On 09/03/2022 14:04, gabriel.moy...@dlr.de wrote:
+#ifdef PPS_SYNC
+SYSCTL_INT(_kern_ntp_pll, OID_AUTO, pps_shiftmax, CTLFLAG_RW,
+    &pps_shiftmax, 0, "Max interval duration (sec) (shift)");
+SYSCTL_INT(_kern_ntp_pll, OID_AUTO, pps_shift, CTLFLAG_RW,
+    &pps_shift, 0, "Interval duration (sec) (shift)");
+SYSCTL_LONG(_kern_ntp_pll, OID_AUTO, time_monitor, CTLFLAG_RD,
+    &time_monitor, 0, "Last time offset scaled (ns)");
+
+SYSCTL_S64(_kern_ntp_pll, OID_AUTO, pps_freq, CTLFLAG_RD | CTLFLAG_MPSAFE,
+    &pps_freq, 0,
+    "Scaled frequency offset (ns/sec)"); SYSCTL_S64(_kern_ntp_pll,
+OID_AUTO, time_freq, CTLFLAG_RD | CTLFLAG_MPSAFE,
+    &time_freq, 0,
+    "Frequency offset (ns/sec)");
+#endif
+
Is there anyway to port these SYSCTLs to rtems?

No, the sysctl() support is only available in libbsd. In RTEMS you could add API functions to set/get these variables. In libbsd you could add sysctl() support using the API.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to