]> rtime.felk.cvut.cz Git - sojka/can-utils.git/commit
can-calc-bit-timing: calculate bit timings for all known controllers by default
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 20 Jul 2010 13:43:16 +0000 (13:43 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 20 Jul 2010 13:43:16 +0000 (13:43 +0000)
commitb9f9cd0c62dccb62d0bae09baf9fa2d97801ede9
treedf5d1245b63de597f39490f85c34dedf5576b18e
parent26488b16e6deb2ff97643c7b02ce4342fd2143fe
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>
can-calc-bit-timing.c