[LinuxPPS] Any Updates on that issue [PATCHv3 12/16] ntp: add hardpps implementation
Udo van den Heuvel
udovdh at xs4all.nl
Fri Oct 8 16:41:44 CEST 2010
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?
Udo
More information about the LinuxPPS
mailing list