Uwe Hermann [Sun, 2 Feb 2014 01:35:59 +0000 (02:35 +0100)]
sdcard_spi: Use proper annotation classes.
This fixes parts of bug #309.
Uwe Hermann [Sun, 2 Feb 2014 01:14:37 +0000 (02:14 +0100)]
sdcard_spi: Initial fixing round for correct samplenumbers.
This fixes parts of bug #309.
Uwe Hermann [Sun, 2 Feb 2014 00:07:20 +0000 (01:07 +0100)]
rtc8564: Handle century bit.
Uwe Hermann [Sat, 1 Feb 2014 23:55:48 +0000 (00:55 +0100)]
rtc8564: Provide short/long annotations.
Uwe Hermann [Sat, 1 Feb 2014 23:40:23 +0000 (00:40 +0100)]
rtc8564: Handle register 0x06 (weekday).
Uwe Hermann [Sat, 1 Feb 2014 23:20:57 +0000 (00:20 +0100)]
rtc8564: Define annotation rows.
Uwe Hermann [Sat, 1 Feb 2014 22:47:03 +0000 (23:47 +0100)]
rtc8564: Use proper annotation classes.
Uwe Hermann [Sat, 1 Feb 2014 22:38:25 +0000 (23:38 +0100)]
lpc: Define annotation rows.
Uwe Hermann [Sat, 1 Feb 2014 22:14:46 +0000 (23:14 +0100)]
Add a few missing probe-names.
Uwe Hermann [Sat, 1 Feb 2014 17:20:45 +0000 (18:20 +0100)]
uart: Better annotation row handling of parity errors.
Uwe Hermann [Sat, 1 Feb 2014 17:11:40 +0000 (18:11 +0100)]
guess_bitrate: start() doesn't take a metadata argument anymore.
Uwe Hermann [Sat, 1 Feb 2014 15:03:22 +0000 (16:03 +0100)]
Fix more warnings exposed by -Wmissing-prototypes.
Uwe Hermann [Sat, 1 Feb 2014 14:41:36 +0000 (15:41 +0100)]
usb_signalling: Define annotation rows.
Uwe Hermann [Sat, 1 Feb 2014 14:40:27 +0000 (15:40 +0100)]
spi: Improve probe names/descriptions a bit.
Uwe Hermann [Sat, 1 Feb 2014 14:25:53 +0000 (15:25 +0100)]
onewire_link: Define annotation rows.
Uwe Hermann [Sat, 1 Feb 2014 13:58:23 +0000 (14:58 +0100)]
dcf77: Fix incorrect startsample for "month" field.
Uwe Hermann [Sat, 1 Feb 2014 13:46:52 +0000 (14:46 +0100)]
avr_isp: Fix a bug resulting in incorrect start samples.
Uwe Hermann [Fri, 31 Jan 2014 13:56:17 +0000 (14:56 +0100)]
dcf77: Define annotation rows.
Uwe Hermann [Fri, 31 Jan 2014 13:56:14 +0000 (14:56 +0100)]
spi: Define annotation rows.
Uwe Hermann [Thu, 30 Jan 2014 21:26:39 +0000 (22:26 +0100)]
uart: Define annotation rows.
Also, provide all the required annotation classes for this to work
properly.
Uwe Hermann [Fri, 31 Jan 2014 15:59:22 +0000 (16:59 +0100)]
Add support for annotation rows.
An annotation row is a list of annotation classes that should all be
displayed in the same "row" in GUIs.
For example, the UART decoder would have at least two rows (for decoded
RX and TX data/startbits/stopbits/paritybits), the SPI decoder would have
at least two rows (for decoded MISO and MOSI data), and so on.
Each annotation row has a short ID string (mostly for use in
command-line frontends), a description string (mostly for use by GUIs),
and a tuple/list of annotation class IDs belonging to this row.
If no annotation rows are provided by the decoder, frontends can
consider this as the "trivial" case of all annotation classes being
displayed on the same (only) row.
Uwe Hermann [Thu, 30 Jan 2014 23:45:56 +0000 (00:45 +0100)]
uart: Allow either RX or TX to be optional.
Uwe Hermann [Thu, 30 Jan 2014 23:13:32 +0000 (00:13 +0100)]
srd_inst_probe_set_all: Error out upon missing required probes.
Uwe Hermann [Thu, 30 Jan 2014 21:37:29 +0000 (22:37 +0100)]
s/out_proto/out_python/.
The output type is now called OUTPUT_PYTHON, adapt all PDs to that.
Uwe Hermann [Thu, 30 Jan 2014 18:33:13 +0000 (19:33 +0100)]
Fix warnings exposed by -Wmissing-prototypes.
Uwe Hermann [Thu, 30 Jan 2014 18:28:49 +0000 (19:28 +0100)]
configure.ac: Add -Wmissing-prototypes.
Uwe Hermann [Thu, 30 Jan 2014 18:19:23 +0000 (19:19 +0100)]
configure.ac: Only check for things we actually use.
Drop checks where we don't use the result (yet). We might bring back
some of those once we start actually using the result in the code.
Uwe Hermann [Thu, 30 Jan 2014 18:17:40 +0000 (19:17 +0100)]
mx25lxx05d: Add probe test case.
Uwe Hermann [Thu, 30 Jan 2014 16:54:16 +0000 (17:54 +0100)]
uart: Add trekstor_ebr30_a test case.
Uwe Hermann [Thu, 30 Jan 2014 14:26:06 +0000 (15:26 +0100)]
uart: Better fix for ASCII output.
This is a temporary thing, later there'll be some facility to let
frontends handle any annotations marked as "this is a number" (as opposed
to "this is a string") in a generic manner and display them in any
supported (by that frontend) format, e.g. ascii, hex, oct, decimal,
binary, big-endian vs. little-endian, and so on.
This is a fix related to #201.
Uwe Hermann [Wed, 29 Jan 2014 17:34:10 +0000 (18:34 +0100)]
spi: Add mx25l1605d_probe test case.
Uwe Hermann [Wed, 29 Jan 2014 17:25:08 +0000 (18:25 +0100)]
spi: Add atmega32_00 test case.
Uwe Hermann [Tue, 28 Jan 2014 23:31:14 +0000 (00:31 +0100)]
spi: Rename 'sck' to the more common 'clk'.
Uwe Hermann [Mon, 27 Jan 2014 13:38:47 +0000 (14:38 +0100)]
spi: Allow MISO or MOSI to be optional.
This fixes bug #175.
Uwe Hermann [Mon, 27 Jan 2014 14:50:15 +0000 (15:50 +0100)]
tests/pdtest: Fix -R (takes an argument).
Uwe Hermann [Sat, 25 Jan 2014 08:55:19 +0000 (09:55 +0100)]
spi: Drop temporary hack for combined MISO/MOSI out.
Uwe Hermann [Mon, 27 Jan 2014 14:09:08 +0000 (15:09 +0100)]
Fix out-of-tree build.
This fixes 'make install' and 'make dist' for out-of-tree builds.
Uwe Hermann [Wed, 22 Jan 2014 22:06:01 +0000 (23:06 +0100)]
tests/runtc.c: Minor whitespace fixes.
Uwe Hermann [Wed, 22 Jan 2014 22:03:02 +0000 (23:03 +0100)]
tests/pdtest: Add missing license header.
Uwe Hermann [Wed, 22 Jan 2014 22:01:52 +0000 (23:01 +0100)]
tests/pdtest: Fix shebang line.
Uwe Hermann [Wed, 22 Jan 2014 21:56:08 +0000 (22:56 +0100)]
All PDs: Consistent naming/case for annotation shortnames/IDs.
Uwe Hermann [Wed, 22 Jan 2014 21:47:18 +0000 (22:47 +0100)]
All PDs: Drop unneeded comments.
The single comment re-stating the PD's name / description / purpose in
each pd.py file is not really needed, that info is available in the
Decoder class' attributes already.
Uwe Hermann [Wed, 22 Jan 2014 21:43:21 +0000 (22:43 +0100)]
All PDs: Improve/fix descriptions.
Uwe Hermann [Mon, 20 Jan 2014 20:52:15 +0000 (21:52 +0100)]
transitioncounter: Drop PD (obsolete).
This decoder was just a simple test case for early libsigrokdecode
development and testing, it is neither useful nor properly working
currently, so drop it.
Uwe Hermann [Mon, 20 Jan 2014 16:43:01 +0000 (17:43 +0100)]
uart: Add binaryout/dump support, drop obsolete 'uart_dump' PD.
The functionality of the preliminary 'uart_dump' PD is now available
in the proper 'uart' PD, via the OUTPUT_BINARY mechanism that frontends
can use to dump decoded data (in various formats) to a file, or pipe it
into other applications, and so on.
Old sigrok-cli example usage:
$ sigrok-cli -i foo.sr -P uart:rx=0:tx=1,uart_dump:filename=bootlog.txt
New sigrok-cli example usage:
$ sigrok-cli -i foo.sr -P uart:rx=0:tx=1 -B uart=rxtx > bootlog.txt
New sigrok-cli example usage (piping into other applications):
$ sigrok-cli -i foo.sr -P uart:rx=0:tx=1 -B uart=rxtx | grep "whatever"
Uwe Hermann [Sat, 18 Jan 2014 18:15:41 +0000 (19:15 +0100)]
i2s: Add WAV dump support, drop obsolete 'i2s_dump' PD.
The functionality of the preliminary 'i2s_dump' PD is now available
in the proper 'i2s' PD, via the OUTPUT_BINARY mechanism that frontends
can use to dump decoded data (in various formats) to a file, or pipe it
into other applications, and so on.
Old sigrok-cli example usage:
$ sigrok-cli -i 2ch-16bit-16khz.sr \
-P i2s:sck=0:ws=1:sd=2,i2s_dump:filename=foo.wav
$ aplay foo.wav
New sigrok-cli example usage:
$ sigrok-cli -i 2ch-16bit-16khz.sr \
-P i2s:sck=0:ws=1:sd=2 -B i2s=wav > foo.wav
$ aplay foo.wav
New sigrok-cli example usage (piping into other applications):
$ sigrok-cli -i 2ch-16bit-16khz.sr \
-P i2s:sck=0:ws=1:sd=2 -B i2s=wav | aplay -
Uwe Hermann [Fri, 17 Jan 2014 16:56:26 +0000 (17:56 +0100)]
configure.ac: Drop obsolete MinGW Python3 workaround.
We just use dummy/fake python3.pc files on Windows so that the usual
pkg-config mechanism works there as well.
Uwe Hermann [Fri, 17 Jan 2014 16:56:08 +0000 (17:56 +0100)]
configure.ac: Check for all known Python3 pkg-config names.
Even when using pkg-config not all distro/platform specific issues are
transparent, unfortunately. On some systems the pkg-config file is
named "python3.pc" on others it's versioned, e.g. "python-3.2.pc".
See also: http://sigrok.org/wiki/Libsigrokdecode/Python
This should fix the build on e.g. FreeBSD, NetBSD, Mac OS X (some
versions), and possibly various Linux distros, e.g. Gentoo.
Also, drop manual AC_MSG_ERROR() and let PKG_CHECK_MODULES() output a
more verbose and standardized error message if Python 3 is not found.
Uwe Hermann [Mon, 13 Jan 2014 22:26:36 +0000 (23:26 +0100)]
parallel: Make CLK probe optional.
When no CLK probe is supplied to this PD, handle any transition on
any of the supplied data probes as if there had been a CLK transition.
(based on a suggestion/patch by "bmx" from the #sigrok channel, thanks!)
Uwe Hermann [Fri, 3 Jan 2014 16:41:24 +0000 (17:41 +0100)]
Link against libm to avoid Python related linking errors.
The python3-config script reported "-lm" as linker option previously,
but we switched to using pkg-config (among other things for
cross-compile support) which doesn't report "-lm" though (this is a
common behaviour across multiple distros and OSes).
Marcus Comstedt [Thu, 2 Jan 2014 11:43:34 +0000 (12:43 +0100)]
configure.ac: Use pkg-config to check for python
Using python-config does not work when cross-compiling, since it
can only be run on the host system.
Uwe Hermann [Sat, 28 Dec 2013 22:17:18 +0000 (23:17 +0100)]
jtag: Use proper annotation classes, fix GUI usage.
This closes bug #156.
Uwe Hermann [Sun, 13 Oct 2013 13:39:44 +0000 (15:39 +0200)]
jtag: Refactor and simplify some code.
Uwe Hermann [Sat, 28 Dec 2013 14:15:06 +0000 (15:15 +0100)]
Do some more I2C to I²C changes.
Uwe Hermann [Sat, 28 Dec 2013 14:11:55 +0000 (15:11 +0100)]
i2s: Fix typo.
Joel Holdsworth [Sat, 28 Dec 2013 08:17:02 +0000 (09:17 +0100)]
mxc6225xu: Replace I2C with I²C
Joel Holdsworth [Sat, 28 Dec 2013 08:16:13 +0000 (09:16 +0100)]
lm75: Replace I2C with I²C
Joel Holdsworth [Sat, 28 Dec 2013 08:03:48 +0000 (09:03 +0100)]
i2s_dump: Replace I2S with I²S
Joel Holdsworth [Sat, 28 Dec 2013 08:02:34 +0000 (09:02 +0100)]
i2s: Replace I2S with I²S
Joel Holdsworth [Sat, 28 Dec 2013 08:01:02 +0000 (09:01 +0100)]
i2cfiler: Replaced I2C with I²C
Joel Holdsworth [Sat, 28 Dec 2013 00:37:18 +0000 (01:37 +0100)]
i2cdemux: Replaced I2C with I²C
Joel Holdsworth [Sat, 28 Dec 2013 00:21:26 +0000 (01:21 +0100)]
i2c: Replaced I2C with I²C
Bert Vermeulen [Sun, 22 Dec 2013 22:07:23 +0000 (23:07 +0100)]
runtc: Fix conditional build on non-Linux systems.
Arkadiusz Miśkiewicz [Wed, 18 Dec 2013 15:12:34 +0000 (16:12 +0100)]
Don't install runtc.
Don't install runtc. Not meant for generic usage.
Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Bert Vermeulen [Wed, 18 Dec 2013 11:04:26 +0000 (12:04 +0100)]
runtc: Output binary as ASCII timestamp/class/hex bytes instead.
This allows for verifying timestamps and classes as well.
Bert Vermeulen [Sun, 15 Dec 2013 14:55:35 +0000 (15:55 +0100)]
runtc: Make sure to compile against this library
It might compile against a previously-installed one unless the linker
finds it in the top directory first.
Bert Vermeulen [Fri, 13 Dec 2013 17:13:08 +0000 (18:13 +0100)]
i2c: Add Python tests.
Bert Vermeulen [Fri, 13 Dec 2013 17:11:52 +0000 (18:11 +0100)]
pdtest/runtc: Add support for Python output types.
Bert Vermeulen [Fri, 13 Dec 2013 16:57:01 +0000 (17:57 +0100)]
Send SRD_OUTPUT_PYTHON to registered callbacks as well.
There's really only one use case for this: the testing framework. This
allows it to check what gets sent up the stack as well.
Bert Vermeulen [Fri, 13 Dec 2013 10:52:38 +0000 (11:52 +0100)]
Prune dead code.
Bert Vermeulen [Fri, 13 Dec 2013 10:51:41 +0000 (11:51 +0100)]
i2c: Avoid obsolete method.
Bert Vermeulen [Fri, 13 Dec 2013 10:29:59 +0000 (11:29 +0100)]
No need to mess with method reference counts.
Bert Vermeulen [Thu, 12 Dec 2013 12:30:36 +0000 (13:30 +0100)]
i2c: Add binary tests.
Bert Vermeulen [Thu, 12 Dec 2013 12:29:37 +0000 (13:29 +0100)]
pdtest/runtc: Add support for binary output types.
Bert Vermeulen [Thu, 12 Dec 2013 12:28:21 +0000 (13:28 +0100)]
pdtest: Add -f option to automatically fix failing tests.
Bert Vermeulen [Thu, 12 Dec 2013 00:29:26 +0000 (01:29 +0100)]
runtc: Add support for binary output.
Bert Vermeulen [Wed, 11 Dec 2013 23:57:04 +0000 (00:57 +0100)]
Use new binary class definition format.
Bert Vermeulen [Wed, 11 Dec 2013 23:56:12 +0000 (00:56 +0100)]
Binary classes are now defined as (name, description).
Bert Vermeulen [Wed, 11 Dec 2013 22:41:02 +0000 (23:41 +0100)]
Easier access to sequences of strings, not just lists.
Bert Vermeulen [Wed, 11 Dec 2013 20:53:17 +0000 (21:53 +0100)]
runtc: Return errorcode according to testcase result.
Bert Vermeulen [Wed, 11 Dec 2013 20:52:33 +0000 (21:52 +0100)]
pdtest: Use -dd to turn on SR/SRD debugging.
Bert Vermeulen [Wed, 11 Dec 2013 17:36:42 +0000 (18:36 +0100)]
check: Make sure to test this set of decoders, not the installed ones.
Bert Vermeulen [Wed, 11 Dec 2013 17:31:56 +0000 (18:31 +0100)]
Load decoders from all search paths, not just the default.
srd_decoder_load_all() was really only getting a list of decoders
from the default (installation) path, so could not find uninstalled
decoders, or those in a custom added search path.
This broke development of new PDs when using the SIGROKDECODE_DIR
environment variable, and broke many of the unit tests in the tests/
directory -- those actually tested against the already-installed
decoders, not the ones about to be installed.
Bert Vermeulen [Wed, 11 Dec 2013 15:30:25 +0000 (16:30 +0100)]
Clear decoder list after unloading, not just at exit.
Bert Vermeulen [Wed, 11 Dec 2013 11:50:38 +0000 (12:50 +0100)]
runtc: Make sure to test this set of decoders, not the installed ones.
Bert Vermeulen [Wed, 11 Dec 2013 11:49:30 +0000 (12:49 +0100)]
pdtest: Don't bother with diff if any error at all occurred.
Bert Vermeulen [Wed, 11 Dec 2013 11:48:50 +0000 (12:48 +0100)]
pdtest: Add option for custom sigrok-dumps repository path.
Bert Vermeulen [Wed, 11 Dec 2013 11:39:50 +0000 (12:39 +0100)]
pdtest: Always sanity-check all testcases.
Bert Vermeulen [Wed, 11 Dec 2013 00:21:22 +0000 (01:21 +0100)]
Clean up runtc build.
This only compiles libsigrok into the one target that needs it, instead
of slopping it all over the place.
Bert Vermeulen [Tue, 10 Dec 2013 16:17:38 +0000 (17:17 +0100)]
Add protocol decoder testing framework.
This adds a tool in the tests directory, called pdtest. It uses the
"test/" directory in every PD directory, if present, to run the
PD against dumps found in the sigrok-dumps repository, and compares
the output against ".output" files in the "test/" directory. The file
"test/test.conf" is used to configure which tests to run.
A separate tool (tests/runtc.c) is used to run the actual decoding and
report output.
To get an overview of the options, run tests/pdtest without any options.
Bert Vermeulen [Tue, 10 Dec 2013 01:38:44 +0000 (02:38 +0100)]
API clarification.
Bert Vermeulen [Tue, 10 Dec 2013 00:05:59 +0000 (01:05 +0100)]
Fix 'dist' make target.
Bert Vermeulen [Mon, 9 Dec 2013 10:44:27 +0000 (11:44 +0100)]
Avoid GError warning when unloading decoders.
Bert Vermeulen [Mon, 9 Dec 2013 00:40:23 +0000 (01:40 +0100)]
Support DESTDIR on install targets.
Fixes bug 215.
Uwe Hermann [Wed, 4 Dec 2013 10:05:00 +0000 (11:05 +0100)]
parallel: start(): Drop obsoleted metadata parameter.
This fixes bug #202.
Uwe Hermann [Tue, 3 Dec 2013 13:46:23 +0000 (14:46 +0100)]
uart: Display non-ASCII characters properly.
We use the [XX] notation for non-printable characters, which is what
various other logic analyzer software packages do too, e.g. the
CWAV USBee Suite.
This fixes bug #201.
Bert Vermeulen [Fri, 29 Nov 2013 12:59:51 +0000 (13:59 +0100)]
Python 3.2 and portability fixes.
Bert Vermeulen [Wed, 27 Nov 2013 16:50:23 +0000 (17:50 +0100)]
Clean up autoconf leftover configuration.
Bert Vermeulen [Wed, 27 Nov 2013 15:52:56 +0000 (16:52 +0100)]
edid: Make sure to install the vendor list.
Bert Vermeulen [Wed, 27 Nov 2013 15:47:04 +0000 (16:47 +0100)]
Automate protocol decoder installation.
This automatically figures out the files to install for each protocol
decoder, without involving autotools.
All python files (filenames ending in .py) are always installed. If a
protocol decoder requires installation of a non-python file, a small
file called 'config' can be created in that protocol decoder's
directory, with the following content:
# comments are ok
extra-install vendorlist.txt commands.txt