Uwe Hermann [Tue, 15 Jul 2014 20:49:43 +0000 (22:49 +0200)]
All PDs: Minor whitespace and consistency fixes.
- No newlines at the end of files.
- No trailing ';' characters.
- Comparison with None: Use 'is None' or 'is not None'.
- Comparison with True/False: Use 'if cond:' or 'if not cond:'.
- Various minor whitespace fixes.
For options which only have a limited set of valid values, we don't need
to check (in the PD) whether a valid value was supplied, since the backend
can do that for us.
Uwe Hermann [Tue, 8 Jul 2014 19:21:03 +0000 (21:21 +0200)]
All PDs: Drop unneeded exceptions.
In all current PDs it is not necessary to raise an exception upon
invalid states (of the PD's state machine), since we can guarantee that
no such invalid state can ever be reached in these PDs.
Marcus Comstedt [Sun, 29 Jun 2014 09:38:50 +0000 (11:38 +0200)]
runtc: Fix incorrect include directive
runtc.c used to try to include "../config.h". This only works when
building in the source tree, otherwise there is no config.h in the
parent directory of runtc.c. However, the explicit path is
unnecessary since the build directory (whether the same as the source
directory or not) will always be added to the include path.
Marcus Comstedt [Sun, 6 Jul 2014 23:36:22 +0000 (01:36 +0200)]
srd_decoder_load_all_path: Support zipimport paths
srd_decoder_load() works perfectly with decoders stored inside zip files.
However, srd_decoder_load_all{_path,}() did not, because it assumed that
normal directory listings can be used to enumerate decoders, which is not
the case for zipped decoders. Fix this by providing a fallback based on
the zipimporter Python class.
Bert Vermeulen [Mon, 23 Jun 2014 17:49:47 +0000 (19:49 +0200)]
pdtest/runtc: Support for output type 'exception'.
The match value should be the name of the exception thrown, e.g.
AttributeError, IndexError or even a custom exception defined in
the protocol decoder, such as SamplerateError.
Kumar Abhishek [Fri, 9 May 2014 21:32:05 +0000 (04:32 +0700)]
libsigrokdecode: Fix make -j issue with build_runtc
The build of runtc caused issues with make -j as runtc
was attempted to be linked with libsigrokdecode before
libsigrokdecode was linked. Using LDADD to insert
libsigrokdecode ensures that it links before runtc,
ensuring the build completes correctly.
Abhishek Kumar [Thu, 8 May 2014 23:05:00 +0000 (06:05 +0700)]
Add python as a pkg-config dependency
The current libsigrokdecode build passes the python
CPPFLAGS and LDFLAGS directly into libsigrokdecode.pc.in.
This leads to issues while cross-compiling as while using
PKG_CONFIG_SYSROOT_DIR, there is a chance of the prefix
being duplicated. We now, while detecting the installation
of python (cross or normal), add a dependency for the
module name in the pkgconfig file (from configure.ac).
This changes the library filename (e.g. on Linux) from
libsigrokdecode.so.1.0.0 to libsigrokdecode.so.2.0.0, the SONAME (+symlink)
becomes libsigrokdecode.so.2.
Uwe Hermann [Wed, 5 Feb 2014 17:25:22 +0000 (18:25 +0100)]
nunchuk: Fix PD to become usable in GUIs.
- Provide proper annotation classes and annotation rows.
- Emit bit-exact annotations for some registers.
- Output short and long annotations (for use when zooming).
- Various minor fixes.
Uwe Hermann [Sun, 13 Apr 2014 17:57:43 +0000 (19:57 +0200)]
Rename 'probe' to 'channel' everywhere.
Variables of type 'struct srd_channel *' are consistently named 'pdch' to
make them easily distinguishable from libsigrok's 'struct sr_channel *'
variables that are consistently named 'ch'.
Uwe Hermann [Sat, 5 Apr 2014 11:00:59 +0000 (13:00 +0200)]
configure.ac: Clearly mark required and optional libs.
Also, drop printing of the detected Python CPPFLAGS/LDFLAGS, not really
needed since it's available in 'make V=1' output as well (and we don't print
it for other libs either).
Uwe Hermann [Fri, 7 Mar 2014 16:24:21 +0000 (17:24 +0100)]
ir_nec: Drop some unneeded options.
The timing of the protocol is not really configurable, valid data in
this protocol must always adhere to the same timing parameters, making them
configurable should not be needed.
Also: Only check for the "interesting" edges and simplify the code a bit.
Bert Vermeulen [Sun, 9 Mar 2014 22:48:27 +0000 (23:48 +0100)]
Change PD options to be a tuple of dictionaries.
Each option consists of a dictionary with the following keys:
id The option id, which is passed in when setting a value.
desc A description of the option, suitable for display.
def The default value for this option.
values (optional) If present, a tuple containing values the option
may take. They must be of the same type as the default.
Valid types for the options are UTF-8-encoded strings, integers, and
floating point values.
Daniel Elstner [Thu, 27 Feb 2014 21:07:58 +0000 (22:07 +0100)]
z80: Output jump offsets relative to instruction start.
Most assemblers recognize the symbol $ for the address of the
current instruction. Make use of this to output relative jump
instructions using the $[+-]offset syntax, with offset being
the displacement minus the instruction length.