Commit Graph

140 Commits

Author SHA1 Message Date
Bert Vermeulen d4ae8eaa7c fix buffer size, various error checks 2011-01-08 15:50:14 +01:00
Bert Vermeulen 2a3f9541a4 add sigrok_period_string(), MAX_NUM_PROBES 2011-01-08 15:50:13 +01:00
Uwe Hermann 340f6e7aea Fix out-of-tree build.
Use libtool "noinst" local helper libs and use one Makefile.am per
subdir, which is the usual/preferred method. These helper libraries are
purely local and will not be installed.

This also fixes out-of-tree builds of sigrok, i.e. building in a
directory other than the sigrok source directory, e.g.

 $ cd /home/user
 $ git clone ...sigrok
 $ cd sigrok
 $ ./autogen.sh
 $ mkdir /tmp/foo
 $ cd /tmp/foo
 $ /home/user/sigrok/configure
 $ make
 $ make install

This will place all build results (.o files, .la files, etc) in the
local build directory (/tmp/foo) instead of the source directory
(/home/user/sigrok in this example). The installation directory is
selected via the --prefix configure option (/usr/local per default).
2011-01-08 03:32:25 +01:00
Uwe Hermann 757b8c628a Cosmetics, whitespace, simplifications.
Reduce code nesting a bit, constify some strings.
2011-01-08 01:49:47 +01:00
Bert Vermeulen 339729131d proper fix for output_text corner cases
limit probe names to 32 chars
2010-12-29 01:22:58 +01:00
Bert Vermeulen ee5f5e81ad fix corner cases/memory management (cli->text out) 2010-12-28 21:59:07 +01:00
Uwe Hermann 38ba252251 Use 'kHz' (not 'KHz') consistently. 2010-05-27 01:51:55 +02:00
Uwe Hermann fbe2f7945d VCD: Optimizations and fixes. 2010-05-09 22:06:30 +02:00
Uwe Hermann 086eac7c7b VCD/Gnuplot: Fix incorrect sample counter. 2010-05-09 22:06:30 +02:00
Uwe Hermann 114fb93f67 Gnuplot: Nicer output formatting. 2010-05-09 22:06:30 +02:00
Uwe Hermann 5f8c4cb363 Gnuplot: Improve column/probe name display.
This fixes incorrect probe name display if the user explicitly named
probes via '-p 1=CLK' etc.
2010-05-09 22:06:29 +02:00
Uwe Hermann e734b81a68 output_text: More error handling. 2010-05-09 22:06:29 +02:00
Uwe Hermann caf62e22c4 output_gnuplot: Simplify event(). 2010-05-09 22:06:28 +02:00
Uwe Hermann d20ba6490a output_binary: Code simplifications. 2010-05-09 22:06:28 +02:00
Uwe Hermann 1e32053cd0 Gnuplot quickfix: Increase malloc()'ed size. 2010-05-09 22:06:28 +02:00
Uwe Hermann 5cca9adbf2 VCD/Gnuplot: Store time/date in output. 2010-05-09 22:06:28 +02:00
Uwe Hermann 607b58de58 VCD/Gnuplot: Cosmetics, code simplifications. 2010-05-09 22:06:27 +02:00
Uwe Hermann a821069b34 Gnuplot output: More error handling. 2010-05-09 22:06:27 +02:00
Uwe Hermann 6b5e3ceefc VCD: Improve error handling/checking.
Check malloc()/calloc() return values and so on. Also, add missing
free() calls and some TODOs. Simplify some code.
2010-05-09 22:06:26 +02:00
Bert Vermeulen d2b36a10d7 output_text: always print sigrok version 2010-05-07 23:55:32 +02:00
Bert Vermeulen c9c1c6458c output_binary: rm TODO item
Yes, disabled probes are stripped by the filter before the
output module even gets data.
2010-05-07 23:55:32 +02:00
Bert Vermeulen 7aae74622e output: if device has no plugin, don't report samplerate 2010-05-07 23:52:48 +02:00
Håvard Espeland e273a9040e Output: Fix invalid pointer dereferencing in vcd and gnuplot. 2010-05-04 19:44:39 +02:00
Håvard Espeland 5045c217e6 cli: Show trigger event in bits plugin. 2010-05-01 00:04:07 +02:00
Bert Vermeulen 9601818842 simplify code for unused features 2010-04-18 10:57:13 -07:00
Uwe Hermann 408e719989 Refactoring and code simplifications. 2010-04-15 23:21:30 +02:00
Uwe Hermann 99c1fc59ed output: Coding style fixes. 2010-04-15 20:36:04 +02:00
Uwe Hermann 02076d69f9 Rename "bin" output module to "bits" everywhere. 2010-04-12 23:21:12 +02:00
Uwe Hermann 1c5b9d302c Add raw binary output format.
Also, rename the "bin" format to "bits" for now to avoid confusion.
2010-04-12 21:22:58 +02:00
Uwe Hermann afc8e4deb6 Fix all warnings and re-enable -Wextra. 2010-04-09 22:18:46 +02:00
Bert Vermeulen 37aea2d35c better buffer size calculation 2010-04-08 16:50:27 +02:00
Bert Vermeulen d2cd86ac26 fix off-by-one error 2010-04-08 16:50:27 +02:00
Uwe Hermann 25e7d9b115 Factor out common sigrok_samplerate_string(). 2010-04-07 20:13:57 +02:00
Uwe Hermann bc010c054b VCD output: Handle disabled probes correctly. 2010-04-06 16:54:39 +02:00
Uwe Hermann e2ad47b5b0 Gnuplot output format support. 2010-04-06 16:54:37 +02:00
Uwe Hermann e31b636df6 Start unification of libsigrok return codes.
We have SIGROK_OK for functions calls where no errors occured. All
error code names start with SIGROK_ERR and are globally unique,
negative values.

The value SIGROK_ERR is a generic/unspecified error code, all others,
such as SIGROK_ERR_MALLOC, refer to a specific error condition.

This commit renames the old SIGROK_NOK etc.
2010-04-05 18:30:14 +02:00
Uwe Hermann 5a8fda158b Allow output_format.init() to return errors. 2010-04-05 18:30:08 +02:00
Uwe Hermann 4c100f3244 More consistent spelling of "samplerate". 2010-04-05 18:30:02 +02:00
Uwe Hermann 4c9ffa83cf Initial Value Change Dump (VCD) output support. 2010-04-04 13:19:20 +02:00
Uwe Hermann a1bb33afbd Start of code base layout restructuring. 2010-04-02 20:27:54 +02:00