]> sigrok.org Git - libsigrok.git/log
libsigrok.git
14 years agoVCD: Optimizations and fixes.
Uwe Hermann [Sun, 9 May 2010 19:05:15 +0000 (21:05 +0200)]
VCD: Optimizations and fixes.

14 years agoVCD/Gnuplot: Fix incorrect sample counter.
Uwe Hermann [Sun, 9 May 2010 18:52:36 +0000 (20:52 +0200)]
VCD/Gnuplot: Fix incorrect sample counter.

14 years agoGnuplot: Nicer output formatting.
Uwe Hermann [Sun, 9 May 2010 18:27:11 +0000 (20:27 +0200)]
Gnuplot: Nicer output formatting.

14 years agofilter.c: Error handling, code simplification.
Uwe Hermann [Sun, 9 May 2010 17:36:43 +0000 (19:36 +0200)]
filter.c: Error handling, code simplification.

14 years agoGnuplot: Improve column/probe name display.
Uwe Hermann [Sun, 9 May 2010 13:52:56 +0000 (15:52 +0200)]
Gnuplot: Improve column/probe name display.

This fixes incorrect probe name display if the user explicitly named
probes via '-p 1=CLK' etc.

14 years agooutput_text: More error handling.
Uwe Hermann [Sun, 9 May 2010 13:38:33 +0000 (15:38 +0200)]
output_text: More error handling.

14 years agooutput_gnuplot: Simplify event().
Uwe Hermann [Sun, 9 May 2010 13:12:10 +0000 (15:12 +0200)]
output_gnuplot: Simplify event().

14 years agooutput_binary: Code simplifications.
Uwe Hermann [Sun, 9 May 2010 13:11:47 +0000 (15:11 +0200)]
output_binary: Code simplifications.

14 years agoGnuplot quickfix: Increase malloc()'ed size.
Uwe Hermann [Sun, 9 May 2010 13:02:17 +0000 (15:02 +0200)]
Gnuplot quickfix: Increase malloc()'ed size.

14 years agoVCD/Gnuplot: Store time/date in output.
Uwe Hermann [Sun, 9 May 2010 12:54:16 +0000 (14:54 +0200)]
VCD/Gnuplot: Store time/date in output.

14 years agoVCD/Gnuplot: Cosmetics, code simplifications.
Uwe Hermann [Sun, 9 May 2010 12:42:46 +0000 (14:42 +0200)]
VCD/Gnuplot: Cosmetics, code simplifications.

14 years agoGnuplot output: More error handling.
Uwe Hermann [Sun, 9 May 2010 12:35:02 +0000 (14:35 +0200)]
Gnuplot output: More error handling.

14 years agodatastore_new(): Use int as return value.
Uwe Hermann [Sun, 9 May 2010 11:32:58 +0000 (13:32 +0200)]
datastore_new(): Use int as return value.

14 years agoDatastore: More error checking.
Uwe Hermann [Sun, 9 May 2010 11:25:03 +0000 (13:25 +0200)]
Datastore: More error checking.

14 years agoVCD: Improve error handling/checking.
Uwe Hermann [Sat, 8 May 2010 14:09:25 +0000 (16:09 +0200)]
VCD: Improve error handling/checking.

Check malloc()/calloc() return values and so on. Also, add missing
free() calls and some TODOs. Simplify some code.

14 years agooutput_text: always print sigrok version
Bert Vermeulen [Thu, 6 May 2010 05:06:38 +0000 (22:06 -0700)]
output_text: always print sigrok version

14 years agooutput_binary: rm TODO item
Bert Vermeulen [Thu, 6 May 2010 04:43:25 +0000 (21:43 -0700)]
output_binary: rm TODO item

Yes, disabled probes are stripped by the filter before the
output module even gets data.

14 years agooutput: if device has no plugin, don't report samplerate
Bert Vermeulen [Thu, 6 May 2010 02:56:48 +0000 (19:56 -0700)]
output: if device has no plugin, don't report samplerate

14 years agoinput: use dummy device when loading from file
Bert Vermeulen [Thu, 6 May 2010 02:55:58 +0000 (19:55 -0700)]
input: use dummy device when loading from file

14 years agoallow devices without a plugin
Bert Vermeulen [Thu, 6 May 2010 02:54:19 +0000 (19:54 -0700)]
allow devices without a plugin

this is needed to support file loading: we want a device struct
so we can enumerate probes from the file, but there is no plugin
since the data come in from a device.

14 years agoOutput: Fix invalid pointer dereferencing in vcd and gnuplot.
Håvard Espeland [Tue, 4 May 2010 17:44:39 +0000 (19:44 +0200)]
Output: Fix invalid pointer dereferencing in vcd and gnuplot.

14 years agoSigma: Small cleanups.
Håvard Espeland [Mon, 3 May 2010 19:35:02 +0000 (21:35 +0200)]
Sigma: Small cleanups.

14 years agoSigma: Use software trigger to pinpoint exact sample.
Håvard Espeland [Mon, 3 May 2010 19:30:37 +0000 (21:30 +0200)]
Sigma: Use software trigger to pinpoint exact sample.

14 years agoSigma: Add state machine for tracking Sigma status.
Håvard Espeland [Mon, 3 May 2010 17:04:10 +0000 (19:04 +0200)]
Sigma: Add state machine for tracking Sigma status.

14 years agoSigma: Merge storage of rise/fall triggers.
Håvard Espeland [Mon, 3 May 2010 13:06:43 +0000 (15:06 +0200)]
Sigma: Merge storage of rise/fall triggers.

14 years agoSigma: Minor cleanups.
Håvard Espeland [Sun, 2 May 2010 17:21:05 +0000 (19:21 +0200)]
Sigma: Minor cleanups.

14 years agoSigma: Set capture ratio correctly.
Håvard Espeland [Sun, 2 May 2010 17:12:36 +0000 (19:12 +0200)]
Sigma: Set capture ratio correctly.

14 years agoSigma: 50 MHZ falling/rising edge trigger support.
Håvard Espeland [Sun, 2 May 2010 12:58:59 +0000 (14:58 +0200)]
Sigma: 50 MHZ falling/rising edge trigger support.

Falling/rising edge and value/mask triggers can be combined, e.g.:
  --triggers 1=0,2=r,3=1,4=1

14 years agoSigma: Fix simple trigger LUT calculation.
Håvard Espeland [Sun, 2 May 2010 10:59:33 +0000 (12:59 +0200)]
Sigma: Fix simple trigger LUT calculation.

14 years agoSigma: Value/mask trigger support in 50 MHz mode.
Håvard Espeland [Sat, 1 May 2010 20:38:43 +0000 (22:38 +0200)]
Sigma: Value/mask trigger support in 50 MHz mode.

14 years agoSigma: Small cleanups.
Håvard Espeland [Sat, 1 May 2010 12:22:22 +0000 (14:22 +0200)]
Sigma: Small cleanups.

14 years agoSaleae: Rename firmware file to saleae-logic.fw.
Uwe Hermann [Sat, 1 May 2010 00:41:37 +0000 (02:41 +0200)]
Saleae: Rename firmware file to saleae-logic.fw.

This is done for consistency with the ASIX SIGMA firmware file names,
and also for brevity.

14 years agoinout module infrastructure + binary input module
Bert Vermeulen [Fri, 30 Apr 2010 22:54:39 +0000 (15:54 -0700)]
inout module infrastructure + binary input module

14 years agocli: Show trigger event in bits plugin.
Håvard Espeland [Fri, 30 Apr 2010 20:18:55 +0000 (22:18 +0200)]
cli: Show trigger event in bits plugin.

14 years agoSigma: Add triggers support for 100 and 200 MHz.
Håvard Espeland [Fri, 30 Apr 2010 20:18:10 +0000 (22:18 +0200)]
Sigma: Add triggers support for 100 and 200 MHz.

14 years agoSigma: Minor cleanup and add more samplesrates.
Håvard Espeland [Fri, 30 Apr 2010 21:51:57 +0000 (23:51 +0200)]
Sigma: Minor cleanup and add more samplesrates.

14 years agoSigma: Small cosmetic fixes.
Uwe Hermann [Wed, 28 Apr 2010 22:32:44 +0000 (00:32 +0200)]
Sigma: Small cosmetic fixes.

14 years agoSigma: Support for low samplerates
Håvard Espeland [Wed, 28 Apr 2010 20:45:13 +0000 (22:45 +0200)]
Sigma: Support for low samplerates

Lowest samplerate supported in driver is 250 KHz

14 years agoSigma: Support 50 and 200 MHz modes
Håvard Espeland [Wed, 28 Apr 2010 19:21:19 +0000 (21:21 +0200)]
Sigma: Support 50 and 200 MHz modes

14 years agoSigma: Rename firmware files
Håvard Espeland [Wed, 28 Apr 2010 19:20:27 +0000 (21:20 +0200)]
Sigma: Rename firmware files

14 years agoSigma: Upload 50, 100 or 200 MHz firmware
Håvard Espeland [Wed, 28 Apr 2010 18:01:15 +0000 (20:01 +0200)]
Sigma: Upload 50, 100 or 200 MHz firmware

14 years agoSigma: Move upload firmware into a function
Håvard Espeland [Wed, 28 Apr 2010 17:48:59 +0000 (19:48 +0200)]
Sigma: Move upload firmware into a function

14 years agoASIX SIGMA: Coding style fixes (via indent mostly).
Uwe Hermann [Tue, 27 Apr 2010 22:17:28 +0000 (00:17 +0200)]
ASIX SIGMA: Coding style fixes (via indent mostly).

Also, end all/most comments with full stop and avoid variable/array
definitions in the middle of functions.

14 years agoasix-sigma.h: Add missing license header.
Uwe Hermann [Tue, 27 Apr 2010 20:46:59 +0000 (22:46 +0200)]
asix-sigma.h: Add missing license header.

14 years agoASIX Sigma: Use common license header format.
Uwe Hermann [Tue, 27 Apr 2010 20:44:15 +0000 (22:44 +0200)]
ASIX Sigma: Use common license header format.

14 years agoThis commit adds initial support for the Asix Sigma Logic Analyzer. Currently, only...
Håvard Espeland [Tue, 27 Apr 2010 19:43:24 +0000 (21:43 +0200)]
This commit adds initial support for the Asix Sigma Logic Analyzer. Currently, only 200 MHz is supported, and only with software trigger. Firmware for the device will be distributed separately, with permission from the vendor.

Signed-off-by: Håvard Espeland <redacted>
14 years agoWin: Fix compile, serial port code (unfinished).
Uwe Hermann [Thu, 22 Apr 2010 01:39:02 +0000 (03:39 +0200)]
Win: Fix compile, serial port code (unfinished).

14 years agosimplify code for unused features
Bert Vermeulen [Sun, 18 Apr 2010 17:57:13 +0000 (10:57 -0700)]
simplify code for unused features

14 years agofix broken samplerate calculation
Bert Vermeulen [Sun, 18 Apr 2010 06:07:00 +0000 (23:07 -0700)]
fix broken samplerate calculation

14 years agofix double DF_END and libusb timeout
Bert Vermeulen [Sun, 18 Apr 2010 05:09:33 +0000 (22:09 -0700)]
fix double DF_END and libusb timeout

14 years agoOops, bugfixes.
Uwe Hermann [Thu, 15 Apr 2010 21:24:44 +0000 (23:24 +0200)]
Oops, bugfixes.

14 years agoRefactoring and code simplifications.
Uwe Hermann [Thu, 15 Apr 2010 21:21:30 +0000 (23:21 +0200)]
Refactoring and code simplifications.

14 years agoSaleae/Zeroplus: Coding style fixes.
Uwe Hermann [Thu, 15 Apr 2010 20:59:43 +0000 (22:59 +0200)]
Saleae/Zeroplus: Coding style fixes.

14 years agoOLS: Coding style fixes.
Uwe Hermann [Thu, 15 Apr 2010 20:16:35 +0000 (22:16 +0200)]
OLS: Coding style fixes.

14 years agohardware/common: Coding style fixes.
Uwe Hermann [Thu, 15 Apr 2010 18:55:57 +0000 (20:55 +0200)]
hardware/common: Coding style fixes.

14 years agooutput: Coding style fixes.
Uwe Hermann [Thu, 15 Apr 2010 18:36:04 +0000 (20:36 +0200)]
output: Coding style fixes.

14 years agolibsigrok: More coding style fixes.
Uwe Hermann [Thu, 15 Apr 2010 18:16:53 +0000 (20:16 +0200)]
libsigrok: More coding style fixes.

14 years agolibsigrok: Coding style fixes.
Uwe Hermann [Thu, 15 Apr 2010 18:07:16 +0000 (20:07 +0200)]
libsigrok: Coding style fixes.

14 years agoFix insufficient braces in KHZ() et al.
Uwe Hermann [Thu, 15 Apr 2010 17:49:14 +0000 (19:49 +0200)]
Fix insufficient braces in KHZ() et al.

14 years agoAdd ARRAY_SIZE helper.
Uwe Hermann [Mon, 12 Apr 2010 22:34:20 +0000 (00:34 +0200)]
Add ARRAY_SIZE helper.

14 years agoRename "bin" output module to "bits" everywhere.
Uwe Hermann [Mon, 12 Apr 2010 21:21:12 +0000 (23:21 +0200)]
Rename "bin" output module to "bits" everywhere.

14 years agoAdd raw binary output format.
Uwe Hermann [Mon, 12 Apr 2010 19:22:58 +0000 (21:22 +0200)]
Add raw binary output format.

Also, rename the "bin" format to "bits" for now to avoid confusion.

14 years agoFix all warnings and re-enable -Wextra.
Uwe Hermann [Fri, 9 Apr 2010 20:18:46 +0000 (22:18 +0200)]
Fix all warnings and re-enable -Wextra.

14 years agozeroplus: Fix compiler warnings.
Uwe Hermann [Fri, 9 Apr 2010 19:20:22 +0000 (21:20 +0200)]
zeroplus: Fix compiler warnings.

14 years agoFactor out trigger_helper() to reduce nesting.
Uwe Hermann [Fri, 9 Apr 2010 19:16:11 +0000 (21:16 +0200)]
Factor out trigger_helper() to reduce nesting.

14 years agoFactor out common ezusb_upload_firmware().
Uwe Hermann [Fri, 9 Apr 2010 18:44:51 +0000 (20:44 +0200)]
Factor out common ezusb_upload_firmware().

14 years agoezusb.c: Coding style fixes.
Uwe Hermann [Fri, 9 Apr 2010 18:36:29 +0000 (20:36 +0200)]
ezusb.c: Coding style fixes.

14 years agosl_open_device(): Refactoring to reduce nesting.
Uwe Hermann [Fri, 9 Apr 2010 18:31:43 +0000 (20:31 +0200)]
sl_open_device(): Refactoring to reduce nesting.

14 years agoSimplify code by reducing nesting level.
Uwe Hermann [Fri, 9 Apr 2010 17:25:29 +0000 (19:25 +0200)]
Simplify code by reducing nesting level.

14 years agoCoding style fixes, aided by 'indent'.
Uwe Hermann [Fri, 9 Apr 2010 17:04:36 +0000 (19:04 +0200)]
Coding style fixes, aided by 'indent'.

The following shell alias can be used:

  alias INDENT='indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs'

14 years agomove posix-specific serial port comms to serial.c
Bert Vermeulen [Fri, 9 Apr 2010 03:15:27 +0000 (05:15 +0200)]
move posix-specific serial port comms to serial.c

14 years agoswitch to SIGROK_ERR
Bert Vermeulen [Thu, 8 Apr 2010 14:58:07 +0000 (16:58 +0200)]
switch to SIGROK_ERR

14 years agovarious fixes, basic acquisition works
Bert Vermeulen [Thu, 8 Apr 2010 14:49:39 +0000 (16:49 +0200)]
various fixes, basic acquisition works

14 years agouse strdup() instead of g_strdup()
Bert Vermeulen [Thu, 8 Apr 2010 14:44:13 +0000 (16:44 +0200)]
use strdup() instead of g_strdup()

14 years agobetter buffer size calculation
Bert Vermeulen [Thu, 8 Apr 2010 14:42:22 +0000 (16:42 +0200)]
better buffer size calculation

14 years agofix off-by-one error
Bert Vermeulen [Sun, 4 Apr 2010 18:51:04 +0000 (20:51 +0200)]
fix off-by-one error

14 years agoFactor out common sigrok_samplerate_string().
Uwe Hermann [Wed, 7 Apr 2010 17:43:41 +0000 (19:43 +0200)]
Factor out common sigrok_samplerate_string().

14 years agoVCD output: Handle disabled probes correctly.
Uwe Hermann [Tue, 6 Apr 2010 13:02:14 +0000 (15:02 +0200)]
VCD output: Handle disabled probes correctly.

14 years agoGnuplot output format support.
Uwe Hermann [Tue, 6 Apr 2010 12:38:47 +0000 (14:38 +0200)]
Gnuplot output format support.

14 years agolibsigrokdecode: Add initial return code list.
Uwe Hermann [Mon, 5 Apr 2010 23:29:32 +0000 (01:29 +0200)]
libsigrokdecode: Add initial return code list.

14 years agoStart unification of libsigrok return codes.
Uwe Hermann [Mon, 5 Apr 2010 14:41:54 +0000 (16:41 +0200)]
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.

14 years agoAllow output_format.init() to return errors.
Uwe Hermann [Mon, 5 Apr 2010 14:20:09 +0000 (16:20 +0200)]
Allow output_format.init() to return errors.

14 years agoMore consistent spelling of "samplerate".
Uwe Hermann [Mon, 5 Apr 2010 13:31:39 +0000 (15:31 +0200)]
More consistent spelling of "samplerate".

14 years agoInitial Value Change Dump (VCD) output support.
Uwe Hermann [Sun, 4 Apr 2010 11:19:20 +0000 (13:19 +0200)]
Initial Value Change Dump (VCD) output support.

14 years agoRename libbackend to libsigrok.
Uwe Hermann [Fri, 2 Apr 2010 18:26:48 +0000 (20:26 +0200)]
Rename libbackend to libsigrok.

14 years agoStart of code base layout restructuring.
Uwe Hermann [Fri, 2 Apr 2010 18:18:27 +0000 (20:18 +0200)]
Start of code base layout restructuring.