]>
sigrok.org Git - libsigrok.git/log
Uwe Hermann [Wed, 30 May 2012 07:10:41 +0000 (09:10 +0200)]
sr: fx2lafw: Fix a firmware upload bug on 32bit systems.
The glib GTimeVal data type (and some functions using it) will be faded
out from glib sooner or later, so it's not a good idea to use them anyway.
In this specific case GTimeVal.tv_sec was overflowing, leading a check in
libsigrok to fail, and thus to FX2 firmware upload errors, i.e.
non-working fx2lafw devices.
http://thread.gmane.org/gmane.comp.debugging.sigrok.devel/166
The root cause is that GTimeVal.tv_sec is a 'glong' (8 bytes on 64bit
systems, but only 4 on 32bit systems).
We now use an int64_t (and g_get_monotonic_time() instead of the more
problematics g_get_current_time() which uses a GTimeVal).
This has been verified to fix the issue on a 32bit system.
Other uses of GTimeVal in libsigrok will be removed in a later release.
Also, drop unneeded GTV_TO_MSEC.
Uwe Hermann [Wed, 30 May 2012 00:27:30 +0000 (02:27 +0200)]
sr: input/chronovu_la8.c: Add missing #include.
This fixes a compiler warning.
Uwe Hermann [Tue, 29 May 2012 22:00:33 +0000 (00:00 +0200)]
sr: New default firmware dir: $prefix/share/sigrok-firmware.
We no longer expect firmware files to be in the
$prefix/share/libsigrok/firmware directory, as that would require an
additional (distro) package 'sigrok-firmware' or the like to install
files into another package's (libsigrok) path, which can be problematic.
The current 'sigrok-firmware' repo's "make install" will already install
all files into $prefix/share/sigrok-firmware.
Uwe Hermann [Tue, 29 May 2012 18:30:15 +0000 (20:30 +0200)]
sr/srd/cli/gtk: ChangeLog -> MAINTAINERCLEANFILES.
If the (generated) ChangeLog file is marked for DISTCLEANFILES, it'll be
removed whenever "make distclean" is called (and is then gone forever if
you use the tarballs, for example).
Uwe Hermann [Mon, 28 May 2012 22:21:21 +0000 (00:21 +0200)]
sr: la8 in: Files must be exactly
8388613 bytes.
All ChronoVu LA8 files (*.kdt extension usually) are exactly
8388613
bytes in size (8MB + 5 bytes). Check this, when trying to autodetect the
file format, to reduce the likelihood of 'chronovu-la8' being
autodetected on all binary files (instead of 'binary').
Uwe Hermann [Mon, 28 May 2012 21:40:12 +0000 (23:40 +0200)]
sr: ARMFLY AX-Pro is supported by fx2lafw (LA only).
Pekka Nikander [Fri, 11 May 2012 16:23:21 +0000 (19:23 +0300)]
sr/srd/cli: Fix compiling with Homebrew.
Add ACLOCAL_DIR setting and AM_PROG_AR macro for compiling with Homebrew
under Mac OS X.
Applies essentially the same change to
{libsigrok,libsigrokdecode,sigrok-cli}/{autogen.sh,configure.ac}
It may be that the same fix is needed for the other autogen.sh and/or
configure.ac files, but that hasn't been tested and therefore not in
this commit.
Uwe Hermann [Thu, 10 May 2012 19:27:17 +0000 (21:27 +0200)]
NEWS: Add some news items.
Uwe Hermann [Thu, 10 May 2012 22:19:01 +0000 (00:19 +0200)]
fx2lafw: Cosmetics.
Joel Holdsworth [Mon, 7 May 2012 15:44:25 +0000 (16:44 +0100)]
fx2lafw: Added a gpif delay debug message
Joel Holdsworth [Mon, 7 May 2012 15:42:50 +0000 (16:42 +0100)]
fx2lafw: Added support for 20kHz and 25kHz sampling
Joel Holdsworth [Mon, 7 May 2012 11:40:52 +0000 (12:40 +0100)]
fx2lafw: Added support for 100kHz and 50kHz sampling
Uwe Hermann [Sun, 6 May 2012 17:54:46 +0000 (19:54 +0200)]
sr: fx2lafw: Get/display FX2 REVID.
Uwe Hermann [Sun, 6 May 2012 15:13:49 +0000 (17:13 +0200)]
sr: fx2lafw: Braintechnology USB-LPS support.
Uwe Hermann [Wed, 2 May 2012 17:02:03 +0000 (19:02 +0200)]
sr: We support both SIGMA and SIGMA2.
Also, a few minor coding-style fixes etc.
Uwe Hermann [Tue, 1 May 2012 17:09:06 +0000 (19:09 +0200)]
sr: udev: Add Ideofy LA-08 entry.
Uwe Hermann [Tue, 1 May 2012 17:05:09 +0000 (19:05 +0200)]
sr: udev: Add Velleman PCSU1000 entry.
Uwe Hermann [Tue, 1 May 2012 17:03:44 +0000 (19:03 +0200)]
sr: udev: Fix alphabetical order.
Uwe Hermann [Tue, 1 May 2012 17:00:28 +0000 (19:00 +0200)]
sr: udev: Add Robomotic BugLogic 3.
Bert Vermeulen [Thu, 26 Apr 2012 23:28:47 +0000 (01:28 +0200)]
fx2lafw: use iManufacturer/iProduct fields to identify our firmware
It's more deterministic than the endpoint profile check we did before. Which
was also broken.
Uwe Hermann [Thu, 26 Apr 2012 21:18:05 +0000 (23:18 +0200)]
sr: zeroplus: Fix segfault, add debug output.
There are various ZEROPLUS models with different probe numbers. For now
hardcode to 16 (for the popular LAP-C(16032)). This will need to be
fixed in a dynamic way later.
This fixes a segfault due to only 16 probe-names being defined, but the
drivers returning 32 as probecount.
Also, add some additional debug output.
Bert Vermeulen [Mon, 23 Apr 2012 13:31:41 +0000 (15:31 +0200)]
sr: don't use deprecated glib functions
As of the recent glib 2.32 release, these produce deprecation warnings
at compile time.
Håvard Espeland [Mon, 23 Apr 2012 11:36:17 +0000 (13:36 +0200)]
sigma: Fix segfault when no Sigma present.
Håvard Espeland [Sun, 22 Apr 2012 13:10:46 +0000 (15:10 +0200)]
sigma: Bump copyright notice.
Håvard Espeland [Sun, 22 Apr 2012 12:31:40 +0000 (14:31 +0200)]
sr: Remove zlib dependency.
No longer needed by Sigma driver.
Håvard Espeland [Sun, 22 Apr 2012 12:24:02 +0000 (14:24 +0200)]
sigma: Add support for SIGMA2 (req. new firmware).
Håvard Espeland [Sun, 22 Apr 2012 11:08:16 +0000 (13:08 +0200)]
sigma: Use heap for datafeed packet and header.
Håvard Espeland [Sun, 22 Apr 2012 11:05:10 +0000 (13:05 +0200)]
sigma: Fix bugs in receive_data callback.
- Poll data position on Sigma for every iteration.
- Return TRUE when no data ready.
Uwe Hermann [Wed, 18 Apr 2012 22:55:29 +0000 (00:55 +0200)]
fx2lafw: supported_samplerates[] should be 0-terminated.
Joel Holdsworth [Wed, 18 Apr 2012 21:28:52 +0000 (22:28 +0100)]
fx2lafw: Added support for default Cypess FX2 without EEPROM
Joel Holdsworth [Wed, 18 Apr 2012 18:17:25 +0000 (19:17 +0100)]
sr: Deleted the saleae-logic driver, fx2lafw has superceded it.
Joel Holdsworth [Wed, 18 Apr 2012 18:10:15 +0000 (19:10 +0100)]
sr: Disable saleae-logic driver by default and enable fx2lafw
Joel Holdsworth [Wed, 18 Apr 2012 18:07:30 +0000 (19:07 +0100)]
fx2lafw: Added slower sample rates
Uwe Hermann [Mon, 16 Apr 2012 22:12:33 +0000 (00:12 +0200)]
sr: Initial 0.1.0 release.
Uwe Hermann [Mon, 16 Apr 2012 21:16:00 +0000 (23:16 +0200)]
sr/srd: SR_API/SRD_API/etc. is a no-op on MinGW.
This avoids warnings on a MinGW build. The feature depends on ELF files,
but MinGW/Windows uses PE files.
Uwe Hermann [Sun, 15 Apr 2012 18:33:45 +0000 (20:33 +0200)]
sr: Add functions to query sr version(s).
Uwe Hermann [Sat, 7 Apr 2012 15:40:52 +0000 (17:40 +0200)]
sr: sr_err() et. al. don't need trailing \n.
Uwe Hermann [Sat, 7 Apr 2012 15:35:14 +0000 (17:35 +0200)]
sr: sr_parse_triggerstring docs/improvements.
Also fix smaller typos and cosmetics.
Uwe Hermann [Tue, 10 Apr 2012 20:32:31 +0000 (22:32 +0200)]
sr: fx2lafw: Cosmetics.
Joel Holdsworth [Tue, 10 Apr 2012 17:27:24 +0000 (18:27 +0100)]
fx2lafw: Added command to verify firmware version
Joel Holdsworth [Sun, 8 Apr 2012 16:19:52 +0000 (17:19 +0100)]
fx2lafw: Safer use of libusb_get_device_list
Uwe Hermann [Sat, 31 Mar 2012 10:09:37 +0000 (12:09 +0200)]
sr/srd: Fix 'make distcheck'.
Uwe Hermann [Sat, 31 Mar 2012 10:05:20 +0000 (12:05 +0200)]
sr/srd: Add ChangeLog to ignore list, it's generated.
Uwe Hermann [Sat, 31 Mar 2012 09:57:46 +0000 (11:57 +0200)]
sr: Disable fx2lafw driver again (for now).
After some more testing, it will probably be enabled by default and will
replace/deprecate the Saleae Logic driver at some point.
Uwe Hermann [Sat, 31 Mar 2012 09:37:08 +0000 (11:37 +0200)]
sr: Add NEWS file.
Uwe Hermann [Sat, 31 Mar 2012 09:28:24 +0000 (11:28 +0200)]
sr: SR_PACKAGE_VERSION_* for consistency.
No need to use the LIBSIGROK_ prefix here when we use SR_ everywhere
else. Also, better distinction between package version and lib version.
Uwe Hermann [Thu, 29 Mar 2012 06:55:12 +0000 (08:55 +0200)]
sr: fx2lafw: Consistency fixes.
Uwe Hermann [Wed, 28 Mar 2012 19:55:48 +0000 (21:55 +0200)]
sr: s/_clear/_remove_all/ for consistency.
Uwe Hermann [Wed, 28 Mar 2012 18:00:13 +0000 (20:00 +0200)]
sr: out: Use uint8_t (not char) for buffers.
Uwe Hermann [Wed, 28 Mar 2012 16:52:17 +0000 (18:52 +0200)]
sr: Make wrappers honor return values.
Uwe Hermann [Wed, 28 Mar 2012 00:32:52 +0000 (02:32 +0200)]
sr: Generate ChangeLog from git upon 'make dist'.
Uwe Hermann [Sun, 25 Mar 2012 20:02:19 +0000 (22:02 +0200)]
sr: fx2lafw: Cosmetics.
Uwe Hermann [Sun, 25 Mar 2012 13:23:31 +0000 (15:23 +0200)]
sr: fx2lafw: Use SR_PRIV where needed.
Uwe Hermann [Sun, 25 Mar 2012 13:21:56 +0000 (15:21 +0200)]
sr: fx2lafw: command.h: Add missing include guards.
Uwe Hermann [Sun, 25 Mar 2012 13:20:55 +0000 (15:20 +0200)]
sr: fx2lafw: Cosmetics.
Joel Holdsworth [Sun, 25 Mar 2012 18:39:06 +0000 (19:39 +0100)]
sr: Build ezusb.c for fx2lafw as well as saleae-logic
Joel Holdsworth [Sun, 25 Mar 2012 17:53:54 +0000 (18:53 +0100)]
salae: Only terminate session after all transfers have been aborted
Joel Holdsworth [Sun, 25 Mar 2012 17:52:30 +0000 (18:52 +0100)]
fx2lafw: Made finish_acquisition a static function
Uwe Hermann [Sat, 24 Mar 2012 21:32:47 +0000 (22:32 +0100)]
sr: Fix some samplerate fields.
Uwe Hermann [Sat, 24 Mar 2012 18:42:26 +0000 (19:42 +0100)]
sr: sigrok.h: Add version macros.
Uwe Hermann [Sat, 24 Mar 2012 09:03:36 +0000 (10:03 +0100)]
sr: Rename sigrok.h. to sigrok.h.in, needed soon.
Joel Holdsworth [Sat, 24 Mar 2012 10:04:36 +0000 (10:04 +0000)]
fx2lafw: Only terminate session after all transfers have been aborted
Joel Holdsworth [Sat, 24 Mar 2012 10:07:22 +0000 (10:07 +0000)]
fx2lafw: Removed a line of redundant code
Joel Holdsworth [Wed, 21 Mar 2012 20:42:41 +0000 (20:42 +0000)]
fx2lafw: Imported software triggering from fx2lafw
Uwe Hermann [Wed, 21 Mar 2012 22:42:19 +0000 (23:42 +0100)]
sr: udev: Add missing Hantek DSO-2090 entry.
Uwe Hermann [Wed, 21 Mar 2012 21:33:51 +0000 (22:33 +0100)]
sr/srd: Remove API warnings from READMEs.
We'll have a libsigrok and a libsigrokdecode release soon. After that,
any API changes must be properly documented and reflected in the
SO version (and package version) numbers of the libs.
Uwe Hermann [Wed, 21 Mar 2012 21:29:41 +0000 (22:29 +0100)]
sr: Various fixes in the udev file.
Uwe Hermann [Wed, 21 Mar 2012 18:58:56 +0000 (19:58 +0100)]
cli: Fix -V/-h output a bit.
Options and their defaults should not be documented there, but rather in
the manpage or such.
Uwe Hermann [Wed, 21 Mar 2012 18:45:46 +0000 (19:45 +0100)]
sr: Enable fx2lafw driver per default.
Uwe Hermann [Wed, 21 Mar 2012 18:28:43 +0000 (19:28 +0100)]
sr/srd: Small fixes, constifications, doc updates.
Uwe Hermann [Wed, 21 Mar 2012 17:40:25 +0000 (18:40 +0100)]
sr/cli/gtk/qt: Fix package version numbers / docs.
The next (and first) libsigrok release will be called 0.1.0.
The next (and first) libsigrokdecode release will be called 0.1.0.
The next sigrok-cli release will be called 0.3.0 (as we already had a 0.1
and 0.2 release of sigrok-cli; those did not yet use the libs, though).
sigrok-gtk and sigrok-qt didn't have any releases yet, so their version
numbers are set to 0.1.0.
Also, consistently use three numbers/digits for our version numbers.
Uwe Hermann [Tue, 20 Mar 2012 17:09:18 +0000 (18:09 +0100)]
sr/cli: s/patternmode/pattern/ in a few places.
Uwe Hermann [Tue, 20 Mar 2012 16:51:18 +0000 (17:51 +0100)]
sr: s/err/ret/ for consistency.
We use ret, err, error, and others for return codes of functions.
Standardize on 'ret' for consistency reasons for now.
Uwe Hermann [Sun, 18 Mar 2012 11:57:34 +0000 (12:57 +0100)]
sr: Fix handling of virtual devices.
I.e., handling of sessions which use input from files (not from actual
logic analyzer hardware).
Bert Vermeulen [Thu, 15 Mar 2012 23:04:51 +0000 (00:04 +0100)]
Merge remote-tracking branch 'joel/public'
Joel Holdsworth [Wed, 14 Mar 2012 22:56:15 +0000 (22:56 +0000)]
fx2lafw: Upped NUM_SIMUL_TRANSFERS to 32
Uwe Hermann [Wed, 14 Mar 2012 21:22:32 +0000 (22:22 +0100)]
sr: session_driver: Naming consistency fixes.
Use 'receive_data()', and 'cb_data' as all the other drivers do.
Uwe Hermann [Wed, 14 Mar 2012 21:09:52 +0000 (22:09 +0100)]
sr: demo: s/struct databag/struct context/.
Uwe Hermann [Wed, 14 Mar 2012 21:08:31 +0000 (22:08 +0100)]
sr: demo: s/mydata/ctx/.
Uwe Hermann [Wed, 14 Mar 2012 19:02:48 +0000 (20:02 +0100)]
sr: s/SR_{USB,SERIAL}_INST/SR_INST_{USB,SERIAL}/.
Joel Holdsworth [Mon, 12 Mar 2012 21:49:34 +0000 (21:49 +0000)]
fx2lafw: Added CWAV USBee SX to the device list
Joel Holdsworth [Mon, 12 Mar 2012 21:38:25 +0000 (21:38 +0000)]
fx2lafw: Corrected a comment
Joel Holdsworth [Mon, 12 Mar 2012 21:36:17 +0000 (21:36 +0000)]
fx2lafw: Added Saleae Logic (and clones) to the device list
Joel Holdsworth [Mon, 12 Mar 2012 21:31:43 +0000 (21:31 +0000)]
fx2lafw: Moved firmware path into fx2lafw_profile
Joel Holdsworth [Mon, 12 Mar 2012 21:06:45 +0000 (21:06 +0000)]
fx2lafw: Made fx2lafw profiles const
Joel Holdsworth [Mon, 12 Mar 2012 21:04:53 +0000 (21:04 +0000)]
fx2lafw: Made string pointers constant
Joel Holdsworth [Mon, 12 Mar 2012 21:03:13 +0000 (21:03 +0000)]
fx2lafw: Added ESLA201A to device list
Joel Holdsworth [Sun, 11 Mar 2012 19:00:52 +0000 (19:00 +0000)]
fx2lafw: Send start command after bulk transfer have been set up
Matt Ranostay [Fri, 9 Mar 2012 06:26:30 +0000 (22:26 -0800)]
ols: fixed *ctx null dereferences that would SEGFAULT on probing for a OLS or attempting to read from it.
Signed-off-by: Matt Ranostay <redacted>
Joel Holdsworth [Sun, 4 Mar 2012 18:02:44 +0000 (18:02 +0000)]
fx2lafw: Corrected check_conf_profile checks
Joel Holdsworth [Sun, 4 Mar 2012 14:10:44 +0000 (14:10 +0000)]
fx2lafw: Implemented control of sample rates
Joel Holdsworth [Sun, 4 Mar 2012 14:10:05 +0000 (14:10 +0000)]
fx2lafw: Ensure default sample rate is set
Joel Holdsworth [Sat, 3 Mar 2012 18:09:29 +0000 (18:09 +0000)]
fx2lafw: Removed CMD_STOP and renumbered commands
Joel Holdsworth [Sat, 3 Mar 2012 15:22:51 +0000 (15:22 +0000)]
fx2lafw: Moved num_samples into context struct
Joel Holdsworth [Sat, 3 Mar 2012 15:18:19 +0000 (15:18 +0000)]
saleae-logic: Moved num_samples into context struct
Joel Holdsworth [Sat, 3 Mar 2012 14:57:57 +0000 (14:57 +0000)]
fx2lafw: Removed CMD_SET_SAMPLERATE
Joel Holdsworth [Thu, 1 Mar 2012 20:34:20 +0000 (20:34 +0000)]
fx2lafw: Implemented initial support for start capture
Joel Holdsworth [Thu, 1 Mar 2012 19:47:47 +0000 (19:47 +0000)]
sr: Added device IDs for CWAV USBee AX to udev rules
Joel Holdsworth [Thu, 1 Mar 2012 19:45:08 +0000 (19:45 +0000)]
fx2lafw: Devices now retain the same PID/VID after fw load
Joel Holdsworth [Wed, 29 Feb 2012 22:47:05 +0000 (22:47 +0000)]
fx2lafw: Implemented SR_HWCAP_PROBECONFIG and SR_HWCAP_LIMIT_SAMPLES