Commit Graph

2426 Commits

Author SHA1 Message Date
Dan Horák 92506359d3 detect version 1.x of libftdi library
The FDTI library changed version, module name and also soname, so add an option to detect it
when the 0.x version is not found. The 1.x API is compatible enough for libsigrok to build.
2014-06-15 11:46:57 +02:00
Mike Frysinger 82bfb646ae do not add check to common cflags/libs
Only the unittests use these flags, so don't go linking them in for
the main library too.
2014-06-15 10:46:10 +02:00
Mike Frysinger e15e5873b3 asix-sigma: fix build time warnings
We need to include unistd.h for usleep():
hardware/asix-sigma/asix-sigma.c: In function 'sigma_fpga_init_bitbang':
hardware/asix-sigma/asix-sigma.c:450:3: warning: implicit declaration of function 'usleep'
   usleep(10000);

And we need to tweak the type of chunks_per_read to match dl_lines_total:
hardware/asix-sigma/asix-sigma.c: In function 'download_capture':
hardware/asix-sigma/asix-sigma.c:1161:39: warning: comparison between signed and unsigned integer expressions
   dl_lines_curr = MIN(chunks_per_read, dl_lines_total);
2014-06-15 10:45:39 +02:00
Mike Frysinger a4737997a2 add explicit configure flags for ftdi/serial/usb libraries
This makes it a lot easier for distros to control this functionality.
2014-06-15 10:38:06 +02:00
Matthias Heidbrink a4e435eb49 norma-dmm: Added request timeout mechanism; docs. 2014-06-13 21:22:11 +02:00
Matthias Heidbrink 49c06128d7 norma-dmm: Added separate driver siemens-b102x for Siemens B1024-B1028 DMMs (just for cosmetic reasons). 2014-06-07 19:45:41 +02:00
Aurelien Jacobs 13dd25bdb8 chronovu-la: re-add return that was inadvertently removed in commit aeff7fa2 2014-06-03 18:59:01 +02:00
Bert Vermeulen a153d6b8ff trigger: Rename sr_trigger_stage_new() to sr_trigger_stage_add(). 2014-05-31 10:34:56 +02:00
Bert Vermeulen d292f767bd session: Expose sr_session_trigger_get() as a public API call. 2014-05-31 10:34:39 +02:00
Bert Vermeulen 649e9e1677 fx2lafw: Fix sample count. 2014-05-29 22:58:58 +02:00
Bert Vermeulen a989cdbe03 saleae-logic16: Fix acquisition with fewer than nine channels enabled. 2014-05-29 22:55:52 +02:00
Bert Vermeulen 863357fb10 saleae-logic16: Use new library software trigger. 2014-05-29 22:16:58 +02:00
Bert Vermeulen 335122f07d fx2lafw: Use new library software trigger. 2014-05-28 15:54:46 +02:00
Bert Vermeulen ac136b574a Add new software trigger as a library-wide facility.
This is strictly an internal feature, for use by drivers for hardware
that doesn't have its own trigger mechanism.
2014-05-28 15:53:27 +02:00
Bert Vermeulen 3d68b6126d session: Free session-wide trigger if set. 2014-05-28 15:46:43 +02:00
Bert Vermeulen 2fe8049447 trigger: Fix memory leak. 2014-05-28 15:46:21 +02:00
Bert Vermeulen 28731bab29 zeroplus-logic-cube: Use new trigger API. 2014-05-28 00:22:06 +02:00
Bert Vermeulen bbe7e48a88 sysclk-lwla: Use new trigger API. 2014-05-28 00:21:56 +02:00
Bert Vermeulen 91fd0f7246 ols: Use new trigger API. 2014-05-28 00:21:45 +02:00
Bert Vermeulen 02d5c0d8ea ikalogic-scanalogic2: Use new trigger API. 2014-05-28 00:21:23 +02:00
Bert Vermeulen 9615eeb572 fx2lafw: Use new trigger API. 2014-05-28 00:21:10 +02:00
Bert Vermeulen aeff7fa286 chronovu-la: Use new trigger API. 2014-05-28 00:20:51 +02:00
Bert Vermeulen 39c64c6a4f asix-sigma: Use new trigger API. 2014-05-28 00:19:58 +02:00
Bert Vermeulen 9f00e5aefb Remove dead code from session read.
The "trigger" keyword was supported in theory, but in practice nothing
ever wrote it, so it was never used.
2014-05-28 00:05:51 +02:00
Bert Vermeulen 6db3b6a4d1 Remove obsolete API call sr_parse_triggerstring().
Since triggers are now passed to libsigrok with an API, this moved
to sigrok-cli.
2014-05-28 00:05:00 +02:00
Bert Vermeulen 3b0ff21c8c Remove obsolete API call sr_dev_trigger_set().
Triggers are now set on the session, not on a channel.
2014-05-28 00:01:54 +02:00
Bert Vermeulen 795c9de35e Rename SR_CONF_TRIGGER_TYPE to SR_CONF_TRIGGER_MATCH.
Drivers supporting triggering need to implement this in config_list()
and return an array of int32_t consisting of SR_TRIGGER_*.
2014-05-27 23:55:26 +02:00
Bert Vermeulen 7b5e6d2978 Add new triggering framework.
The new triggers consist of a set of structs and an API to manipulate
them.  Both logic and analog triggers are supported, in an unlimited
number of stages.

A single struct sr_trigger containing its stages and triggers is then
added to the session.

In case of a driver where the hardware supports triggering, the struct
is then converted and used to arm the hardware trigger. Drivers without
hardware trigger support, such as fx2lafw or multimeter drivers, use it
as the basis for a software-based trigger implementation instead.
2014-05-27 23:53:27 +02:00
Bert Vermeulen f66d45806f fx2lafw: Rename trigger constant. 2014-05-22 23:22:37 +02:00
Matthias Heidbrink 419bfb5009 motech-lps-30x: Cleanup. 2014-05-19 21:38:23 +02:00
Matthias Heidbrink 1f7da0c2bb motech-lps-30x: Cleanup. 2014-05-19 20:47:15 +02:00
Matthias Heidbrink 1c3d002b68 motech-lps-30x: Implemented driver. 2014-05-19 19:48:28 +02:00
Matthias Heidbrink d0a92abd54 Whitespace and comment improvements, no semantical changes. 2014-05-19 19:44:04 +02:00
Matthias Heidbrink 1ba4a1cf33 strutil: Now using base 10 in sr_atol(), sr_atoi() for compatibility to atoi(), atol(); docs. 2014-05-19 19:40:53 +02:00
Matthias Heidbrink 41b7bd01c1 motech-lps-30x: Initial driver framework. 2014-05-19 19:23:30 +02:00
Uwe Hermann 4133caab1d configure.ac: Bump package version to 0.3.0. 2014-05-06 23:00:08 +02:00
Uwe Hermann 85ca913cae configure.ac: Bump libtool/library version from 1:2:0 to 2:0:0.
The libtool current:revision:age numbers change from 1:2:0 to 2:0:0.

Details:
http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info

This changes the library filename (e.g. on Linux) from libsigrok.so.1.0.2
to libsigrok.so.2.0.0, the SONAME (+symlink) becomes libsigrok.so.2.
2014-05-06 22:59:00 +02:00
Uwe Hermann 8f8289dc1d NEWS: Add list of user-visible changes so far. 2014-05-06 20:28:21 +02:00
Uwe Hermann ace218f922 Rename SR_T_CHAR to SR_T_STRING.
This is more correct and less confusing.
2014-05-06 20:18:54 +02:00
Martin Ling 05238d2830 rigol-ds: Quick hack to fix bug #354. 2014-05-05 00:38:58 +01:00
Uwe Hermann a9af7b1b8b README: Mention missing dependency 'librevisa'. 2014-05-04 22:04:37 +02:00
Uwe Hermann f897acaee8 log.c: Avoid using the same name for a variable and enum. 2014-05-04 20:57:38 +02:00
Uwe Hermann 4711724141 Add/update Doxygen @since tags. 2014-05-04 20:53:53 +02:00
Uwe Hermann 768579456c libsigrok.h: Add some missing enum names for consistency. 2014-05-04 20:53:53 +02:00
Bert Vermeulen 6b2d33856f asix-sigma: Don't set invalid configuration options. 2014-05-04 11:49:48 -07:00
Uwe Hermann f055494660 doxygen: Updated Doxyfile to doxygen 1.8.6. 2014-05-04 17:55:46 +02:00
Uwe Hermann 8c21897f59 Unhook the Link Instruments MSO-19 from the build for now.
This driver is neither working nor has it been in a compiling state for
a long time, so unhook it from the build until it is fixed and works.

The files (api.c and protocol.[ch]) are still in git, but won't end up in
released tarballs and they don't get built (neither git nor tarballs).

This also allows us to drop the otherwise unneeded dependency on libudev.
When the MSO-19 driver comes back, it should be in a form that doesn't
require the inherently Linux-only libudev anyway. See also:
http://sigrok.org/bugzilla/show_bug.cgi?id=65
2014-05-04 17:44:05 +02:00
Uwe Hermann 2fa222c78b Drop obsolete Linux-only usbtmc backend.
We're now using a portable libusb-based (userspace) backend which should
in theory work on any OS with libusb support.
2014-05-04 17:38:09 +02:00
Uwe Hermann e311f77015 README.devices: Various updates and fixes. 2014-05-04 17:35:47 +02:00
Uwe Hermann 71422cb6eb Drop left-overs of the removed alsa driver. 2014-05-04 17:01:03 +02:00