From 7bac8ec92398cedc9a223cbd45481c618fe5eda3 Mon Sep 17 00:00:00 2001 From: Juergen Beisert Date: Mon, 8 Oct 2007 10:02:53 +0000 Subject: command line options reworked git-svn-id: https://iocaste.extern.pengutronix.de/svn/canutils/trunks/canutils-2.0-trunk@83 5fd5a299-6ef2-0310-aa18-8b01d7c39d8c --- ChangeLog | 4 + src/canconfig.c | 232 +++++++++++++++++++++++++++----------------------------- 2 files changed, 116 insertions(+), 120 deletions(-) diff --git a/ChangeLog b/ChangeLog index 47f25a2..80bf222 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-10-08 Juergen Beisert + + * command line: change command line options to set a custom bitrate + 2007-10-05 Juergen Beisert * release: 2.0.2 with support for custom bitrates. diff --git a/src/canconfig.c b/src/canconfig.c index 9c9d4ae..dd1d88e 100644 --- a/src/canconfig.c +++ b/src/canconfig.c @@ -57,17 +57,16 @@ static void help(void) "BR := \n\t\t" "canconfig mode MODE\n\t\t" "MODE := { start }\n\t" - "canconfig tweak [ VALs ]\n\t\t" - "VALs := \n\t\t" - " TBR bit rate to be tweaked in Hz\n\t\t" - " TQ time quantum in ps\n\t\t" - " ERR max. allowed error in pps\n\t\t" - " PPS Prop_Seg in tq\n\t\t" - " PHS1 Phase_Seg1 in tq\n\t\t" - " PHS2 Phase_Seg2 in tq\n\t\t" - " SJW in tq\n\t\t" - " SAM 1 for 3 times sampling, 0 else\n\t\t" - " without VALSs " CONFIG_FILE_NAME " will be read\n" + "canconfig setentry [ VALs ]\n\t\t" + "VALs := \n\t\t" + " bitrate \n\t\t" + " tq