[LinuxPPS] Any Updates on that issue [PATCHv3 12/16] ntp: add hardpps implementation

Alexander Gordeev lasaine at lvk.cs.msu.su
Fri Oct 8 16:49:38 CEST 2010


В Fri, 08 Oct 2010 16:41:44 +0200
Udo van den Heuvel <udovdh at xs4all.nl> пишет:

> On 2010-10-08 16:30, Alexander Gordeev wrote:
> >> ppsvalid remains 0. hardpps() is not run.
> >> Isn't flag3 set to 1 enough?
> > 
> > Please check that /usr/include/linux/pps.h and /usr/include/timepps.h
> > both have all necessary stuff to enable kernel consumer.
> 
> Thanks for responding.
> What should be in there to make it work?
> 
> pps.h:
> /* Kernel consumers */
> #define PPS_KC_HARDPPS          0       /* hardpps() (or equivalent) */
> #define PPS_KC_HARDPPS_PLL      1       /* hardpps() constrained to
>                                            use a phase-locked loop */
> #define PPS_KC_HARDPPS_FLL      2       /* hardpps() constrained to
>                                            use a frequency-locked loop */
> 
> 
> Ahaaa:
> 
> static __inline int time_pps_kcbind(pps_handle_t handle,
>                                         const int kernel_consumer,
>                                         const int edge, const int tsformat)
> {
>         /* LinuxPPS doesn't implement kernel consumer feature */
>         errno = EOPNOTSUPP;
>         return -1;
> }
> 
> Isn't /usr/include/timepps.h part of the patches?
> 
> Where do I get the code that needs to be there?

From my pps-tools repository.
http://github.com/ago/pps-tools

It was not available some time ago, but it's ok now.

-- 
  Alexander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
Url : http://ml.enneenne.com/pipermail/linuxpps/attachments/20101008/e7bab79a/attachment.pgp 


More information about the LinuxPPS mailing list