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.
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.
Daniel Elstner [Thu, 27 Feb 2014 20:31:10 +0000 (21:31 +0100)]
z80: Format hex numbers with leading zero if necessary.
Assembler syntax requires that all numbers start with a decimal
digit. Introduce a custom 'H' format for prefixing a leading 0
to hexadecimal numbers that would otherwise start with a letter.
In the 'sdcard_spi' PD/case the SD spec specifically differentiates between
a so-called "SPI mode" and "SD mode" (both being well-defined terms from
the spec), thus the "SPI mode" in the name and description of that PD.
For 'rgb_led_spi' however there's no such distinction for "modes"
really, so shorten the name/description to just 'RGB LED (SPI)'.
Uwe Hermann [Wed, 19 Feb 2014 14:09:22 +0000 (15:09 +0100)]
rgb_led: Rename PD to rgb_led_spi.
There are a number of other RGB LED protocols (simple or more advanced
ones, and various ones not based on SPI), so use a more distinguishable
name for this PD.