Use the same config structure for command line and config file We have now two redundant structures that hold the configuration data for log-plotter. Remove the redundant one and use only one structure for holding all configuration data. Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
Add primitive config file parsing support This supports parsing "variable = value" style lines from a config file. The file can also have blank lines and comments starting with '#' character. Anything it doesn't understand are skipped. Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
Rename debug.[ch] to trace.[ch] This file is more about tracing than debugging, Rename it to match more what it really is about. Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
options: Add help Keep the users happy by letting them know how to use this damn thing. Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
options: Fix short option for --baud --baud in short is -b Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
options: Make trace level adjustable We already have a TRACE_DEBUG level but we can't show up the prints there unless we are able to adjust the trace level too. Now we can. Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
Add command line parsing Add generic commnd line parsing code for adjusting the run time configurable parameters. Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>