CONFIG_HARD_PPS ?
Hi,
I have been studying the serial driver code and found the following chunk of code in serial.c (2.4.19):
---------------------------------------------------------------
#ifdef CONFIG_HARD_PPS if ((info->flags & ASYNC_HARDPPS_CD) && (status & UART_MSR_DCD)) hardpps();
#endif
---------------------------------------------------------------
There seems to be no reference to it in the current 2.4 and 2.5 kernels. There are some reference in the 2.2 kernels. Is this cruft left from previous versions?
Regards,
Amit
Signature · 4 lines
---------------------------------------------------------------------- Amit Kucheria [email protected] Metric Systems Corp. 2320 Cousteau Court, Suite 201, Vista, CA 92083 ----------------------------------------------------------------------
Quoted 10 lines · Amit Kucheria
Hi,
I have been studying the serial driver code and found the following chunk of code in
serial.c(2.4.19):---------------------------------------------------------------
#ifdef CONFIG_HARD_PPS if ((info->flags & ASYNC_HARDPPS_CD) && (status & UART_MSR_DCD)) hardpps();
Quoted 6 lines
#endif
---------------------------------------------------------------There seems to be no reference to it in the current 2.4 and 2.5 kernels. There are some reference in the 2.2 kernels. Is this cruft left from previous versions?
Sort of. That is used in externally synchronized time-master-keeper
code, where a "1 pulse per second" line from (these days) GPS receiver is fed to serial port DCD input pin.
It is indeed pity that the full code-set isn't included in kernel baseline. More people could then use Linux as their NTP master.
Quoted 4 lines
Regards,
Amit
Amit Kucheria [email protected]
Metric Systems Corp. 2320 Cousteau Court, Suite 201, Vista, CA 92083
/Matti Aarnio