]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
can-calc-bit-timing: calculate bit timings for all known controllers by default
authorbet-frogger <bet-frogger@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 20 Jul 2010 13:43:16 +0000 (13:43 +0000)
committerbet-frogger <bet-frogger@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 20 Jul 2010 13:43:16 +0000 (13:43 +0000)
commit274aaafb1fd2f60f4128228e425c7d32691c51b3
treec43540ada203f4f7e3978644362f0d7e25327f19
parentede257bb37d0ac17629c608b74e26bc30fa83211
can-calc-bit-timing: calculate bit timings for all known controllers by default

When testing or improving the bit timing algorithm, you're probably
interested in the values of all can controllers. Further you might not
know the all reference clocks of the controllers.

This patch add a "ref_clock" member to the "struct can_bittiming_const"
that holds the reference clock of the controller in Hz.

By default now the bit timing is calculated for all known can
controllers with the default ref_clock defined in "can_bittiming_const".

It's still possible to overwrite the ref clock with the command line
option "-c".

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@1188 030b6a49-0b11-0410-94ab-b0dab22257f2
can-utils/can-calc-bit-timing.c