Renato Caldas
f020a99773
link-mso19: Fixed led toggling (the bit masking was not being proprly done).
2012-01-19 11:12:01 +00:00
Renato Caldas
e084a8042e
link-mso19: Prevent double free errors when freeing sdi->priv.
2012-01-19 11:12:01 +00:00
Renato Caldas
357285a944
link-mso19: Add debug messages.
2012-01-19 11:12:01 +00:00
Renato Caldas
a29360733d
link-mso19: Properly initialize the protocol trigger block
2012-01-19 11:12:01 +00:00
Renato Caldas
a84671913e
link-mso19: Added new register definitions and renamed variables to reflect new findings.
2012-01-19 11:12:01 +00:00
Renato Caldas
80aa5f23d1
link-mso19: Added struct definitions for the pattern generator config and the protocol trigger config.
2012-01-19 11:12:01 +00:00
Uwe Hermann
66410a8617
sr: g_free()/g_string_free() can handle NULL input.
2012-01-19 00:32:02 +01:00
Bert Vermeulen
af1c793dfe
clean up some dead code
2012-01-15 23:25:58 +01:00
Uwe Hermann
8f81fe8728
sr: s/g_message/sr_dbg/.
...
libsigrok should only use sr_*() for debug output.
2012-01-10 22:16:41 +01:00
Bert Vermeulen
8c76be539e
clean up drivers at the end of a session, and fix session file init.
2012-01-08 22:05:00 +01:00
Uwe Hermann
e0508e6799
sr: session: Make most functions return int.
...
This allows us to return error codes etc.
Add a little more error handling.
2012-01-07 17:11:50 +01:00
Uwe Hermann
b3b2146291
More .gitignore files cleanup.
2012-01-07 14:15:10 +01:00
Bert Vermeulen
db4b455bee
remove obsolete libsigrokdecode struct
2012-01-07 02:54:43 +01:00
Uwe Hermann
8ff6afc95d
sr: Consistently use 512kB as default chunk size.
2012-01-06 16:20:28 +01:00
Renato Caldas
1190dcf713
Added "autostuff" to the .gitignore.
2012-01-06 15:05:30 +01:00
Renato Caldas
446a037205
session: Fixed error reporting.
2012-01-06 15:05:28 +01:00
Uwe Hermann
42eb54fb62
mso-19: Fix whitespace.
2012-01-06 01:05:55 +01:00
Renato Caldas
d88b939324
link-mso19: fixed segmentation fault.
2012-01-06 01:01:57 +01:00
Renato Caldas
e42ef08dba
link-mso19: Updated to the current structs (fixed compilation).
2012-01-06 01:01:54 +01:00
Uwe Hermann
0c8dc7b416
udev: Add missing USB IDs for some devices.
2012-01-04 16:45:53 +01:00
Uwe Hermann
8e43129c10
A few more fixes for configure.ac files.
...
Add missing checks and quotes, remove superfluous checks, etc.
2012-01-04 15:42:24 +01:00
Uwe Hermann
dd8b5f565f
sr/srd: Add Doxyfile to the tarball.
2012-01-04 02:50:26 +01:00
Uwe Hermann
4abf8dd0a5
srd: Show config summary, libs, and Python info.
2012-01-04 02:41:33 +01:00
Uwe Hermann
45aed0721c
sr: configure.ac: Print more summary info.
...
- Package version (major.minor.micro)
- Library version (current:revision:age)
- Installation prefix (usually /usr/local)
- Detected libraries and their versions (only for pkg-config libs)
2012-01-04 02:22:17 +01:00
Uwe Hermann
3af71f0da6
sr: configure.ac: Fix version number magic.
2012-01-04 00:36:53 +01:00
Uwe Hermann
d8521c939f
Put most autotools files into autostuff/.
...
This yields a slightly more "tidy" top-level directory.
2012-01-03 23:34:31 +01:00
Uwe Hermann
8e190238d7
sr: Put files into .../share/libsigrok.
2012-01-03 20:06:36 +01:00
Uwe Hermann
0da5b6a9f5
sr: Remove useless filename prefixes.
2012-01-03 20:01:02 +01:00
Uwe Hermann
cd315a80d8
sr/srd: Fix left-over #includes.
...
The libs themselves should use #include "sigrok.h" etc., while the
frontends must use #include <sigrok.h> and so on.
2012-01-03 19:56:01 +01:00
Uwe Hermann
3b7c8f54fc
sr: Drop some obsolete and commented out code.
2012-01-02 14:25:52 +01:00
Uwe Hermann
9f45fb3aea
sr: session: Add docs and some error checks.
2012-01-02 14:23:33 +01:00
Uwe Hermann
13177edbdf
Split README, add appropriate ones per-project.
2011-12-30 22:38:25 +01:00
Uwe Hermann
f928befdad
Update/fix .gitignore files.
2011-12-30 22:14:38 +01:00
Uwe Hermann
db8ae7b941
sr/srd: Remove/fix non-applicable autotools stuff.
2011-12-30 11:14:24 +01:00
Uwe Hermann
826938d81e
sr/srd: Move some files to their resp. dirs.
2011-12-30 11:14:05 +01:00
Uwe Hermann
5e59cfbfc7
Move most contrib/ stuff to libsigrok.
...
The udev rules file is libsigrok-specific, the gnuplot files too.
The nsis files stay in the top-level contrib/ for now, they're not
really part of any of the (sub-)projects, but rather are used to create
a single Windows .exe installer for all of them.
2011-12-30 10:34:30 +01:00
Uwe Hermann
c37d2b1ba1
probe names: Fix cosmetics, add docs, fix off-by-one.
2011-12-29 19:50:14 +01:00
Kristoffer Sjöberg
464d12c72a
Move the probe naming to the creator of the device, and let each driver name its own probes.
2011-12-29 17:04:31 +01:00
Uwe Hermann
2d83e0f963
Fix outdated ezusb_install_firmware() prototype.
2011-12-28 23:11:52 +01:00
Uwe Hermann
b7f09cf86d
libsigrok: Fix #includes.
...
In the lib, we should only #include "sigrok.h" or "sigrok-internal.h",
but not the (possibly installed and thus different/older versions) via
<sigrok.h> or <sigrok-internal.h>.
Frontends should of course use <sigrok.h> and <sigrok-internal.h>.
2011-12-28 23:07:08 +01:00
Uwe Hermann
a0ecd83bc6
Make more variables/functions static and non-global.
...
The 'GSList *devices' from device.c was actually really global (i.e.,
listed in sigrok.h), which is now fixed.
2011-12-28 22:55:21 +01:00
Uwe Hermann
c5d660ae24
Drop unused 'global' struct/variable.
...
The libs shouldn't have any (externally visible) globals anyway.
2011-12-28 21:38:56 +01:00
Uwe Hermann
155d1012f1
sigrok-proto.h: Drop obsolete prototype, move other one.
2011-12-28 21:37:37 +01:00
Uwe Hermann
08d4cc1d14
device: Make some parameters const.
2011-12-28 21:34:37 +01:00
Uwe Hermann
0e3b143994
device: Change some functions to return int.
...
The callers of these functions are yet to be changed so that they
actually check the return values and handle errors appropriately.
2011-12-28 17:26:19 +01:00
Uwe Hermann
94799bc4dc
device: Add Doxygen comments, improve error handling.
...
- Add Doxygen comments for all functions (some TODOs remain).
- Check return code of more functions, handle invalid input.
2011-12-28 16:55:24 +01:00
Bert Vermeulen
cb1e389c72
make time/duration work, at least when loading from a session file
...
PD decode() call now takes 3 arguments: timeoffset, duration, data
as per the current API specification.
2011-12-28 12:17:13 +01:00
Uwe Hermann
15278f3e9c
datastore.c: Improve error handling and docs.
...
- Add Doxygen comments for all functions (some TODOs remain).
- Check for invalid input parameters (such as NULL pointers etc).
- Return SR_ERR_ARG upon invalid input parameters.
- Make sr_datastore_put() return int instead of void, so we can pass
an error code (SR_OK, SR_ERR_MALLOC, and so on) to the caller.
2011-12-26 21:26:02 +01:00
Uwe Hermann
7a6ec0c376
sr_filter_probes(): Check for too many probes.
...
Return SR_ERR_ARG if the number of enabled probes is higher than the
requested unit size supports.
2011-12-26 21:26:01 +01:00
Uwe Hermann
488a13b110
Improve sr_filter_probes error handling and docs.
...
- Much more elaborate doxygen comments for the function and its
parameters, allowed input values, and so on.
- Make 'probelist' const, the function doesn't modify it.
- Check for invalid inputs such as NULL pointers.
- Use g_try_malloc() and g_free() for the output buffer. Document who
is expected to g_free() the buffer.
2011-12-22 14:16:07 +01:00