> On 07/04/2022 11:56, gabriel.moy...@dlr.de wrote:
> >> On 07/04/2022 10:36, Gabriel Moyano wrote:
> >>> ---
> >>>    cpukit/score/src/kern_ntptime.c | 3 +++
> >>>    1 file changed, 3 insertions(+)
> >>>
> >>> diff --git a/cpukit/score/src/kern_ntptime.c
> >>> b/cpukit/score/src/kern_ntptime.c index d4a233f67e..d6ea739f5b
> >>> 100644
> >>> --- a/cpukit/score/src/kern_ntptime.c
> >>> +++ b/cpukit/score/src/kern_ntptime.c
> >>> @@ -58,6 +58,9 @@ __FBSDID("$FreeBSD$");
> >>>    #include <sys/time.h>
> >>>    #include <sys/timex.h>
> >>>    #include <sys/timetc.h>
> >>> +#ifdef __rtems__
> >>> +#define  _KERNEL
> >>> +#endif /* __rtems__ */
> >>>    #include <sys/timepps.h>
> >>>    #ifndef __rtems__
> >>>    #include <sys/syscallsubr.h>
> >> Who is supposed to use the _KERNEL <sys/timepps.h.> API?
> >>
> > hardpps()
> 
> The pps_*() API should be accessible for RTEMS drivers without having to 
> define _KERNEL.

The API functions start with time_pps_*().

hardpps() is declared if _KERNEL is defined. That's why I added it before 
including timepps.h in kern_ntptime.c
It was for removing a warning.

> The hardpps() needs to be added to the _ namespace, for example 
> _NTP_Pulse_per_second_event().

Here I didn't follow you
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to