- tools/cntr/cntr.c (measure, print_f): moved pretty-printing of the
frequency to a separate function
- tools/cntr/cntr.c (count_bursts): print a frequency estimate after each
burst
- tools/cntr/cntr.c (count_bursts): added comment explaining when and where
we take the various samples
- tools/cntr/cntr.c (measure): also stop if ^C is pressed while we're
unsuccessfully trying to communicate with the device
- tools/cntr/cntr.c (main): report a usage error if an argument is given to
-i or -r
- tools/cntr/cntr.c (arm_stop, measure): moveing open-coded arming of the
SIGINT handler to separate function
- tools/cntr/cntr.c (count_bursts, usage, main): added burst counter mode
(cntr -b [timeout_s])
error bound.
- cntr/tools/cntr/cntr.c (measure): use the middle of a round-trip interval
for the sample's nominal time
- cntr/tools/cntr/cntr.c (measure): error bound is only +/- RTT/2, not
+/- RTT
- cntr/README: description of the counter board and its application
- cntr/fw/common/crc32.c: variant of CRC32-IEEE802.3 shared by firmware and
measurement application
- cntr/fw/cntr/ep0.c (my_setup), cntr/tools/cntr/cntr.c (get_sample):
protect the counter value with a CRC and an one's complement copy
- cntr/fw/include/cntr/ep0.h: oops, wasn't checked into repository
- cntr/tools/cntr/cntr.c: added section titles
- cntr/tools/cntr/cntr.c (measure): show communication statistics at the end
- cntr/tools/cntr/cntr.c (measure, usage, main): new option -d to enable
reporting of communication errors
- cntr/tools/cntr/cntr.c (set_stop, measure): let user stop measurement with
SIGINT
- cntr/tools/cntr/cntr.c (measure): get multiple "first samples" and keep
the one with the shortest round-trip time
- cntr/tools/cntr/cntr.c (measure): changed unit "ppk" (1/1000) to percent
(1/100)
- cntr/tools/cntr/cntr.c (usage, main): command-line argument is now the
accuracy goal, while the system clock deviation is set with the new
option -c
- TODO: some more things to do
- cntr/tools/Makefile: the usual recursive Makefile
- cntr/tools/cntr/Makefile, cntr/tools/cntr/cntr.c: user-space tool to
periodically read the free-running counter and to calculate frequency
and deviation from it