]> sigrok.org Git - libsigrokdecode.git/log
libsigrokdecode.git
7 years agoNEWS: Add list of user-visible changes so far.
Uwe Hermann [Mon, 26 Dec 2016 22:09:26 +0000 (23:09 +0100)]
NEWS: Add list of user-visible changes so far.

7 years agoconfigure.ac: Also check for Python 3.6.
Uwe Hermann [Mon, 26 Dec 2016 22:28:58 +0000 (23:28 +0100)]
configure.ac: Also check for Python 3.6.

7 years agobuild support: sort list of installed items, factor out pretty printer
Gerhard Sittig [Sun, 20 Nov 2016 15:51:47 +0000 (16:51 +0100)]
build support: sort list of installed items, factor out pretty printer

Alpha-sort the list of installed items, to support developers which scan
the list for newly added items. Factor out the logic which pretty prints
installed items while maintaining a maximum screen output line length.

7 years agovalgrind: free channels
Karl Palsson [Tue, 29 Nov 2016 14:01:22 +0000 (14:01 +0000)]
valgrind: free channels

Signed-off-by: Karl Palsson <redacted>
7 years agovalgrind: safely iterate lists
Karl Palsson [Fri, 25 Nov 2016 13:55:56 +0000 (13:55 +0000)]
valgrind: safely iterate lists

Old versions triggered valgrind errors as the API method to remove an
entry modifies the list that was being iterated.

Signed-off-by: Karl Palsson <redacted>
7 years agoPrint error messages when decoders fail load time checks
Gerhard Sittig [Sun, 16 Oct 2016 16:25:29 +0000 (18:25 +0200)]
Print error messages when decoders fail load time checks

Several checks get applied when loading externally provided protocol
decoders. Print error messages when checks fail, so that developers can
better resolve issues.

The sequence of tests terminates upon the first failed check, while
decoders may suffer from several issues at the same time. This is
considered acceptable, as it reduces the commit's size and the code's
complexity. This commit only adds error messages, and does not change
logic/behaviour.

Failed API version checks result in two messages: One specific message
which reflects the decoder's version and what's supported by the loader,
and a generic message that the API version check has failed. This is
done to simplify the logic of a rarely used error code path.

This commit addresses libsigrokdecode Bug 704, and allows to identify
decoders from parallel installations of differing version.

This fixes bug #704.

Signed-off-by: Gerhard Sittig <redacted>
7 years agosrd_inst_decode(): Return SRD_ERR_ARG if unitsize is 0.
Uwe Hermann [Thu, 25 Aug 2016 20:34:55 +0000 (22:34 +0200)]
srd_inst_decode(): Return SRD_ERR_ARG if unitsize is 0.

7 years agosrd_inst_decode(): Make the code API version dependent.
Uwe Hermann [Thu, 25 Aug 2016 20:26:41 +0000 (22:26 +0200)]
srd_inst_decode(): Make the code API version dependent.

7 years agoFactor out srd_decoder_apiver().
Uwe Hermann [Thu, 25 Aug 2016 20:22:07 +0000 (22:22 +0200)]
Factor out srd_decoder_apiver().

7 years agosrd_inst_decode(): Improve comments and log messages.
Uwe Hermann [Thu, 25 Aug 2016 20:01:04 +0000 (22:01 +0200)]
srd_inst_decode(): Improve comments and log messages.

Also, drop @since tag (as the function is not public).

7 years agosrd_session_send(): Improve Doxygen comments.
Uwe Hermann [Thu, 25 Aug 2016 19:57:39 +0000 (21:57 +0200)]
srd_session_send(): Improve Doxygen comments.

7 years agoMove common/ directory into decoders/.
Uwe Hermann [Tue, 24 May 2016 19:42:02 +0000 (21:42 +0200)]
Move common/ directory into decoders/.

This simplifies cross-platform handling of the Python/decoder paths
and module installation/dist a bit and also fixes bug #804.

7 years agoSupply metadata to stacked decoders
Stefan Brüns [Sat, 3 Oct 2015 14:26:23 +0000 (16:26 +0200)]
Supply metadata to stacked decoders

Currently only toplevel decoders receive the samplerate, thus stacked
decoders are not able to derive e.g. timestamps from the sample number.

This fixes bug #664.

7 years agoAdd common directory for shared modules.
Bert Vermeulen [Wed, 20 Apr 2016 23:33:49 +0000 (01:33 +0200)]
Add common directory for shared modules.

7 years agoBackport current PDs from git mainline.
Uwe Hermann [Mon, 26 Dec 2016 21:20:08 +0000 (22:20 +0100)]
Backport current PDs from git mainline.

8 years agoDoxyfile: Set version to 0.4.0. libsigrokdecode-0.4.0
Uwe Hermann [Fri, 29 Jan 2016 22:36:58 +0000 (23:36 +0100)]
Doxyfile: Set version to 0.4.0.

8 years agoBump libtool version (not package version) to 3:0:0.
Uwe Hermann [Fri, 29 Jan 2016 22:32:37 +0000 (23:32 +0100)]
Bump libtool version (not package version) to 3:0:0.

The last release (0.3.0) had the libtool version (current:revision:age)
set to 2:0:0. Since this release removes and changes interfaces, the new
version is 3:0:0.

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

This changes the library filename (e.g. on Linux) from
libsigrokdecode.so.2.0.0 to libsigrokdecode.so.3.0.0, the SONAME
(+symlink) becomes libsigrokdecode.so.3.

8 years agoNEWS: Update for upcoming 0.4.0 release.
Uwe Hermann [Fri, 29 Jan 2016 20:25:18 +0000 (21:25 +0100)]
NEWS: Update for upcoming 0.4.0 release.

8 years agoconfigure.ac: Also check for Python 3.5.
Martijn van Buul [Tue, 26 Jan 2016 21:13:26 +0000 (22:13 +0100)]
configure.ac: Also check for Python 3.5.

This fixes bug #739.

8 years agouart: Optimize handling of samples when tx and rx are both idle
Daniel Thompson [Fri, 22 Jan 2016 08:29:09 +0000 (08:29 +0000)]
uart: Optimize handling of samples when tx and rx are both idle

Re-enable the fast path for identical samples but only when both
pins are waiting for the start bit. For sparse data sets (I tested
UT61E capture log) the optimization results in a >4x decode
improvement.

8 years agoarm_itm: Use objdump instead of addr2line.
Petteri Aimonen [Sun, 10 Jan 2016 17:23:55 +0000 (19:23 +0200)]
arm_itm: Use objdump instead of addr2line.

This improves speed and fixes bug 564. Code is somewhat
of a copypaste from the arm_etm counterpart, but there
are enough differences that it is easier to keep separate
copy of the objdump parsing in each.

8 years agousb_power_delivery: Raise SamplerateError instead of Exception.
Uwe Hermann [Fri, 25 Dec 2015 15:28:23 +0000 (16:28 +0100)]
usb_power_delivery: Raise SamplerateError instead of Exception.

(for consistency with the other PDs)

8 years agoUse self.out_binary naming consistently across all PDs.
Uwe Hermann [Wed, 23 Dec 2015 19:01:48 +0000 (20:01 +0100)]
Use self.out_binary naming consistently across all PDs.

8 years agoUse a Python list (not tuple) for OUT_BINARY.
Uwe Hermann [Wed, 23 Dec 2015 19:00:45 +0000 (20:00 +0100)]
Use a Python list (not tuple) for OUT_BINARY.

This is more consistent with annotation syntax and looks slightly
better in most cases.

8 years agoDrop obsolete support for annotation tuples (only support lists).
Uwe Hermann [Sun, 20 Dec 2015 16:49:31 +0000 (17:49 +0100)]
Drop obsolete support for annotation tuples (only support lists).

None of the PDs use this.

8 years agoem4100: Simplify the code a bit.
Uwe Hermann [Fri, 18 Dec 2015 16:42:16 +0000 (17:42 +0100)]
em4100: Simplify the code a bit.

8 years agoem4100: Use ss/es naming for consistency across PDs.
Uwe Hermann [Fri, 18 Dec 2015 16:29:10 +0000 (17:29 +0100)]
em4100: Use ss/es naming for consistency across PDs.

8 years agoem4100: Eliminate some unnecessary int()s.
Uwe Hermann [Fri, 18 Dec 2015 16:21:47 +0000 (17:21 +0100)]
em4100: Eliminate some unnecessary int()s.

8 years agoem4100: Change annotation setup a bit, decode more protocol details.
Uwe Hermann [Fri, 18 Dec 2015 17:14:06 +0000 (18:14 +0100)]
em4100: Change annotation setup a bit, decode more protocol details.

8 years agoAdd RFID EM4100 protocol decoding
Benjamin Larsson [Tue, 15 Dec 2015 00:00:01 +0000 (01:00 +0100)]
Add RFID EM4100 protocol decoding

8 years agousb_power_delivery: Use "if not self.samplerate" form.
Uwe Hermann [Wed, 16 Dec 2015 17:14:30 +0000 (18:14 +0100)]
usb_power_delivery: Use "if not self.samplerate" form.

Use the "if not self.samplerate" form, which catches both the case
where self.samplerate is None, as well as the case where it is 0.

This is also consistent with all the other PDs.

8 years agousb_power_delivery: convert double quotes to single quotes
Vincent Palatin [Wed, 25 Nov 2015 17:19:58 +0000 (09:19 -0800)]
usb_power_delivery: convert double quotes to single quotes

For consistency with other decoders, convert all the double quotes around
strings to single quotes.

Signed-off-by: Vincent Palatin <redacted>
8 years agoinit: Don't let Python override signal handlers
Marcus Comstedt [Fri, 4 Dec 2015 21:36:17 +0000 (22:36 +0100)]
init: Don't let Python override signal handlers

This fixes bug #461.

8 years agousb*: Minor cosmetics.
Uwe Hermann [Fri, 4 Dec 2015 21:11:14 +0000 (22:11 +0100)]
usb*: Minor cosmetics.

8 years agousb_signalling: detect PREamble PID
Stefan Brüns [Tue, 1 Dec 2015 05:44:43 +0000 (06:44 +0100)]
usb_signalling: detect PREamble PID

PID decoding is normally done in the packet layer, but the signalling
layer has to switch behaviour on detection of an PREamble PID.

8 years agousb_signalling: add signaling states needed after LS PREamble PID
Stefan Brüns [Tue, 1 Dec 2015 05:48:02 +0000 (06:48 +0100)]
usb_signalling: add signaling states needed after LS PREamble PID

8 years agousb_{packet,request}: handle PREamble transmissions
Stefan Brüns [Tue, 1 Dec 2015 04:53:32 +0000 (05:53 +0100)]
usb_{packet,request}: handle PREamble transmissions

9 years agousb_signalling: fix SOP detection after an error condition
Stefan Brüns [Sun, 29 Nov 2015 23:35:11 +0000 (00:35 +0100)]
usb_signalling: fix SOP detection after an error condition

If the oldsym is not set to 'J' before entering IDLE state, the SOP
detection will never trigger

9 years agousb_packet: handle errors from usb_signalling
Stefan Brüns [Sun, 29 Nov 2015 23:00:03 +0000 (00:00 +0100)]
usb_packet: handle errors from usb_signalling

If a packet had any errors, the usb_signalling PD will not send an EOP
but an ERR message. Wait for the next SOP in both cases.

9 years agousb_request: Handle transmission timeouts
Stefan Brüns [Sun, 29 Nov 2015 22:56:53 +0000 (23:56 +0100)]
usb_request: Handle transmission timeouts

If a device or host did not receive a handshake 18 bit times after the
EOP, there was a transmission error and the host may repeat the
transmission

9 years agousb_signalling: add option to automatically set signalling speed
Stefan Brüns [Fri, 13 Nov 2015 06:15:36 +0000 (07:15 +0100)]
usb_signalling: add option to automatically set signalling speed

In automatic mode, the bus is assumed to be in IDLE state. After a
RESET, the bus state is checked again.

9 years agousb_signalling: decode RESET and Keep-Alive signalling conditions
Stefan Brüns [Fri, 13 Nov 2015 04:39:10 +0000 (05:39 +0100)]
usb_signalling: decode RESET and Keep-Alive signalling conditions

Resets are at least 10ms at the root hub downstream facing port and
2.5us at the device (root hub reset may be shortened by itermediate
hubs).
Keep-alive is a low-speed only signalling condition, as low-speed has no
SOFs to inhibit devices to enter suspend

9 years agousb_signalling: use explicit positions for packet start/end
Stefan Brüns [Fri, 13 Nov 2015 04:20:22 +0000 (05:20 +0100)]
usb_signalling: use explicit positions for packet start/end

Instead of centering the block around the sampleposition, which shows
some visual glitches due to rounding, use the edge positions already
known. Remove unused halfbit symbol.

9 years agousb_signalling: handle symbol errors in EOP state
Stefan Brüns [Fri, 13 Nov 2015 03:55:56 +0000 (04:55 +0100)]
usb_signalling: handle symbol errors in EOP state

Only SE0 and J are valid symbols during EOP

9 years agousb_signalling: remove unneeded syms array
Stefan Brüns [Fri, 13 Nov 2015 03:52:53 +0000 (04:52 +0100)]
usb_signalling: remove unneeded syms array

Do not call get_eop() from get_bit(), but directly issue the symbol. As
get_eop() is only called during the GET EOP state, the SE0 is implicit and
there is no need to save it into the syms array.

9 years agousb_signalling: remove unused ss_sop member
Stefan Brüns [Fri, 13 Nov 2015 03:20:54 +0000 (04:20 +0100)]
usb_signalling: remove unused ss_sop member

9 years agousb_signalling: detect bit stuffing errors
Stefan Brüns [Fri, 13 Nov 2015 03:11:37 +0000 (04:11 +0100)]
usb_signalling: detect bit stuffing errors

More than six consecutive 1's are an error

9 years agousb_signalling: consolidate symbol output
Stefan Brüns [Fri, 13 Nov 2015 03:05:24 +0000 (04:05 +0100)]
usb_signalling: consolidate symbol output

No need to replicate the symbol formatting in several places

9 years agospi: Add a 'TRANSFER' output type.
Paul "LeoNerd" Evans [Sun, 8 Nov 2015 00:49:08 +0000 (00:49 +0000)]
spi: Add a 'TRANSFER' output type.

9 years agoFix documentation comment in SPI decoder
Paul "LeoNerd" Evans [Sat, 7 Nov 2015 23:39:59 +0000 (23:39 +0000)]
Fix documentation comment in SPI decoder

9 years agousb_power_delivery: Minor typo and whitespace fixes.
Uwe Hermann [Sat, 21 Nov 2015 19:18:47 +0000 (20:18 +0100)]
usb_power_delivery: Minor typo and whitespace fixes.

9 years agousb_power_delivery: Use the same license header format as other PDs.
Uwe Hermann [Sat, 21 Nov 2015 18:35:15 +0000 (19:35 +0100)]
usb_power_delivery: Use the same license header format as other PDs.

9 years agoUSB Power Delivery protocol decoder
Vincent Palatin [Thu, 29 May 2014 13:51:13 +0000 (06:51 -0700)]
USB Power Delivery protocol decoder

Decode and packetize the Biphase Mark Coding (aka differential Manchester)
as used in the Universal Serial Bus Power Delivery Specification Revision 2.0
v1.1, then decode the packet content.

Signed-off-by: Vincent Palatin <redacted>
9 years agospiflash: Fix incorrect 'inputs' field.
Uwe Hermann [Sat, 21 Nov 2015 17:43:06 +0000 (18:43 +0100)]
spiflash: Fix incorrect 'inputs' field.

(this PD is indeed stacked on top of SPI)

9 years agoInitial attempt at MAX7219/MAX7221 decoder
Paul "LeoNerd" Evans [Tue, 3 Nov 2015 14:02:11 +0000 (14:02 +0000)]
Initial attempt at MAX7219/MAX7221 decoder

9 years agosrd_decoder_unload(): Remove PD from the internal list.
Uwe Hermann [Tue, 3 Nov 2015 01:12:49 +0000 (02:12 +0100)]
srd_decoder_unload(): Remove PD from the internal list.

This issue was discovered via the newly added unit tests.

9 years agotests/decoder.c: Add some srd_decoder_unload*() tests.
Uwe Hermann [Tue, 3 Nov 2015 01:12:29 +0000 (02:12 +0100)]
tests/decoder.c: Add some srd_decoder_unload*() tests.

9 years agoUART: Handle framing errors better
Elrond [Wed, 21 Oct 2015 14:17:19 +0000 (16:17 +0200)]
UART: Handle framing errors better

1. Show Frame Error on the Start bit
2. Don't overwrite framing errors with (valid) start/stop bit info

9 years agoexception: Decorate catch function with format attribute
Daniel Elstner [Tue, 6 Oct 2015 20:42:52 +0000 (22:42 +0200)]
exception: Decorate catch function with format attribute

9 years agobuild: Require GLib 2.28.0
Daniel Elstner [Tue, 6 Oct 2015 19:08:36 +0000 (21:08 +0200)]
build: Require GLib 2.28.0

This is needed for e.g. g_slist_free_full(), which incidentally
has been in use for a while already.

9 years agoutil: Factor out Python module load
Daniel Elstner [Tue, 6 Oct 2015 20:30:14 +0000 (22:30 +0200)]
util: Factor out Python module load

Create a utility function for loading a Python module by its name
in UTF-8.

9 years agodecoder: Refactor loading code and plug leaks
Daniel Elstner [Tue, 6 Oct 2015 19:07:47 +0000 (21:07 +0200)]
decoder: Refactor loading code and plug leaks

9 years agoPython: Restrict code to stable ABI subset
Daniel Elstner [Sun, 4 Oct 2015 23:53:43 +0000 (01:53 +0200)]
Python: Restrict code to stable ABI subset

Limit usage of the Python C API to the stable ABI subset as defined
by PEP 384. This removes some type definitions and functions which
libsigrokdecode made use of. Convert all affected code to suitable
API alternatives. Also fix a few leaks that became apparent while
working on the code.

The most visible change is that PyTypeObject is now an opaque type.
Thus, the custom Decoder and srd_logic types are now created on the
heap via an alternative API. Unfortunately, since tp_name is now
inaccessible, type names had to be removed from the log output.

Stack traces after Python exceptions are now formatted by calling
into Python, since the trace object C API is no longer available.

9 years agousb_request: USB transaction decoder and PCAP generator
Stefan Brüns [Sat, 3 Oct 2015 22:43:38 +0000 (00:43 +0200)]
usb_request: USB transaction decoder and PCAP generator

The new decoder stacks on top of the usb_packet PD. It adds one new
annotation row, and is able to save the decoded data as PCAP trace.

It has been successfully tested against all traces in sigrok-dumps and
some more traces.

9 years agousb_packet: Document CRC5 ERROR and CRC16 ERROR packets.
Uwe Hermann [Tue, 6 Oct 2015 06:29:56 +0000 (08:29 +0200)]
usb_packet: Document CRC5 ERROR and CRC16 ERROR packets.

9 years agousb_{signalling,packet}: Minor cosmetics.
Uwe Hermann [Tue, 6 Oct 2015 06:28:03 +0000 (08:28 +0200)]
usb_{signalling,packet}: Minor cosmetics.

9 years agousb_signalling: Track USB symbol width to compensate frequency errors
Stefan Brüns [Tue, 29 Sep 2015 22:24:24 +0000 (00:24 +0200)]
usb_signalling: Track USB symbol width to compensate frequency errors

USB low/full speed allows for frequency tolerance of 1.5%/0.25%. At
maximum packet size (sync + PID + data + CRC16) of 12 bytes/1027 bytes
this amounts to 1.4 bits/20 bits, so the decoder has to lock to the
actual symbol frequency to avoid any symbol misdetections.

The signal is sampled twice, once at the symbol center and once at
the expected edge position. Comparing the symbol at both positions gives
an indication if the current bit width is too low or too high. Adjust
accordingly.

9 years agousb_packet: calculate and check CRC5/CRC16
Stefan Brüns [Wed, 30 Sep 2015 22:12:29 +0000 (00:12 +0200)]
usb_packet: calculate and check CRC5/CRC16

In case CRC validation fails, an crc5-err/crc16-err annotation is issued,
instead of crc5-ok/crc16-ok, and the error is noted in the annotation
text.

9 years agorfm12: fix small typo
Roland Hieber [Sun, 4 Oct 2015 21:04:02 +0000 (23:04 +0200)]
rfm12: fix small typo

There is a small typo in the rfm12 protocol decoder that I just noticed:

9 years agotests: Do not reference parent directory in includes
Daniel Elstner [Sat, 3 Oct 2015 12:28:43 +0000 (14:28 +0200)]
tests: Do not reference parent directory in includes

Rely on the compiler include path instead.

9 years agotests: Rename DECODERS_DIR to DECODERS_TESTDIR
Daniel Elstner [Sat, 3 Oct 2015 12:21:01 +0000 (14:21 +0200)]
tests: Rename DECODERS_DIR to DECODERS_TESTDIR

Avoid confusion resulting from using the same macro name for
different purposes.

9 years agobuild: Do not hard-code decoders location on Windows
Daniel Elstner [Sat, 3 Oct 2015 12:17:07 +0000 (14:17 +0200)]
build: Do not hard-code decoders location on Windows

9 years agoinit: Also look for decoders in XDG data directories
Daniel Elstner [Sat, 3 Oct 2015 11:18:09 +0000 (13:18 +0200)]
init: Also look for decoders in XDG data directories

9 years agoinit: Simplify srd_decoder_searchpath_add()
Daniel Elstner [Sat, 3 Oct 2015 09:40:33 +0000 (11:40 +0200)]
init: Simplify srd_decoder_searchpath_add()

Don't mess with colon-separated search path strings -- instead,
simply prepend items to the sys.path list object. Also keep the
internal decoder path list in the same order as the items added
to sys.path.

9 years agojitter, pwm: Avoid Unicode string literals
Daniel Elstner [Tue, 15 Sep 2015 09:42:05 +0000 (11:42 +0200)]
jitter, pwm: Avoid Unicode string literals

It seems the Python we ship along our Windows binaries does not
support u"..." strings, even though it's been a language feature
since Python 2. Remove the "u" prefix to avoid a syntax error.

Also, consistently use format "%.1f" at all scales.

This fixes bug #569.

9 years agocan: Improve stuff bit annotation placement.
Uwe Hermann [Mon, 14 Sep 2015 17:05:54 +0000 (19:05 +0200)]
can: Improve stuff bit annotation placement.

9 years agocan: Emit bit value annotations.
Uwe Hermann [Mon, 14 Sep 2015 16:25:02 +0000 (18:25 +0200)]
can: Emit bit value annotations.

9 years agoMakefile.am: Shorten ChangeLog target a bit.
Uwe Hermann [Mon, 14 Sep 2015 15:56:46 +0000 (17:56 +0200)]
Makefile.am: Shorten ChangeLog target a bit.

9 years agolog: Use GLib printf for consistency
Daniel Elstner [Sun, 13 Sep 2015 21:05:42 +0000 (23:05 +0200)]
log: Use GLib printf for consistency

Just as in libsigrok, use g_vfprintf() in the log callback to make
sure we are linking to a standard-conforming printf implementation.

9 years agoBuild: Move _POSIX_C_SOURCE definition to config.h
Daniel Elstner [Sun, 13 Sep 2015 20:10:54 +0000 (22:10 +0200)]
Build: Move _POSIX_C_SOURCE definition to config.h

Do not redefine it though when already set, so that it can be
overridden by the user, or indirectly by the compiler settings.

9 years agoBuild: Include <config.h> first in all source files
Daniel Elstner [Sun, 13 Sep 2015 20:07:11 +0000 (22:07 +0200)]
Build: Include <config.h> first in all source files

Since Autoconf places some important feature flags only into the
configuration header, it is necessary to include it globally to
guarantee a consistent build.

9 years agoFix srd_log() format warnings
Daniel Elstner [Sun, 13 Sep 2015 20:01:34 +0000 (22:01 +0200)]
Fix srd_log() format warnings

9 years agolog: Enable varargs format warnings
Daniel Elstner [Sun, 13 Sep 2015 19:32:27 +0000 (21:32 +0200)]
log: Enable varargs format warnings

Decorate srd_log() with the GCC format printf attribute so that the
compiler can check the format string and arguments for consistency.

Also remove the srd_err(), sr_warn(), etc. functions and replace
them with macro wrappers around srd_log().

9 years agolog: Remove srd_log_logdomain_{get,set} from the API
Daniel Elstner [Sun, 13 Sep 2015 19:10:40 +0000 (21:10 +0200)]
log: Remove srd_log_logdomain_{get,set} from the API

The confusingly named srd_log_logdomain_set() simply set a global
string prefixed to the log message by the default log callback.
This is pretty much useless, misleadingly named, and not used by
either sigrok-cli or PulseView.

9 years agoinstance.c: Don't use 'di' before NULL-checking it.
Uwe Hermann [Thu, 10 Sep 2015 16:19:47 +0000 (18:19 +0200)]
instance.c: Don't use 'di' before NULL-checking it.

9 years agoBuild: Put --no-print-directory into GNUMAKEFLAGS
Daniel Elstner [Thu, 10 Sep 2015 16:45:50 +0000 (18:45 +0200)]
Build: Put --no-print-directory into GNUMAKEFLAGS

Also output the compiler version in the configuration summary.

9 years agosigrok.m4: Update with latest version from libsigrok
Daniel Elstner [Thu, 10 Sep 2015 16:44:55 +0000 (18:44 +0200)]
sigrok.m4: Update with latest version from libsigrok

9 years agolibsigrokdecode.pc: Publish decodersdir variable
Daniel Elstner [Sun, 6 Sep 2015 08:53:54 +0000 (10:53 +0200)]
libsigrokdecode.pc: Publish decodersdir variable

This is so that downstream modules can find the install location
of the decoders.

9 years agoBuild: Show CC and CFLAGS in configuration summary
Daniel Elstner [Sun, 6 Sep 2015 08:51:22 +0000 (10:51 +0200)]
Build: Show CC and CFLAGS in configuration summary

9 years agojtag_stm32: Decode IDCODE contents as strings (not just hex vals).
Uwe Hermann [Thu, 3 Sep 2015 07:19:56 +0000 (09:19 +0200)]
jtag_stm32: Decode IDCODE contents as strings (not just hex vals).

9 years agojtag_stm32: Decode more fields, improve IDCODE handling.
Uwe Hermann [Thu, 3 Sep 2015 06:36:21 +0000 (08:36 +0200)]
jtag_stm32: Decode more fields, improve IDCODE handling.

9 years agojtag_stm32: Cleanups, shorter code.
Uwe Hermann [Wed, 2 Sep 2015 19:06:01 +0000 (21:06 +0200)]
jtag_stm32: Cleanups, shorter code.

9 years agojtag_stm32: Update to reflect change in jtag OUT_PYTHON.
Uwe Hermann [Wed, 2 Sep 2015 18:49:47 +0000 (20:49 +0200)]
jtag_stm32: Update to reflect change in jtag OUT_PYTHON.

9 years agojtag: Submit bit samplenumbers together with the bits.
Uwe Hermann [Wed, 2 Sep 2015 18:49:20 +0000 (20:49 +0200)]
jtag: Submit bit samplenumbers together with the bits.

9 years agojtag_stm32: Fix incorrect handling of registers.
Uwe Hermann [Tue, 1 Sep 2015 18:13:27 +0000 (20:13 +0200)]
jtag_stm32: Fix incorrect handling of registers.

The STM32F10xxx has two serially connected JTAG TAPs, the boundary scan tap
(5 bits) and the Cortex-M3 TAP (4 bits). See UM 31.5 "STM32F10xxx JTAG TAP
connection" for details.
Due to this, we need to ignore the last bit of each data shift (and we
currently ignore the 5 bits of the boundary scan tap).

9 years agojtag: Add more annotations, fix a SHIFT-IR/-DR issue.
Uwe Hermann [Sat, 15 Aug 2015 22:37:34 +0000 (00:37 +0200)]
jtag: Add more annotations, fix a SHIFT-IR/-DR issue.

The code was previously not decoding a bit for the first state change
to SHIFT-IR/-DR, which was incorrect.

9 years agojtag: Fix/enable OUT_PYTHON output.
Uwe Hermann [Fri, 14 Aug 2015 18:05:34 +0000 (20:05 +0200)]
jtag: Fix/enable OUT_PYTHON output.

9 years agoReplace another -D_DEFAULT_SOURCE with -D_POSIX_C_SOURCE=200112L.
Uwe Hermann [Fri, 28 Aug 2015 17:25:09 +0000 (19:25 +0200)]
Replace another -D_DEFAULT_SOURCE with -D_POSIX_C_SOURCE=200112L.

9 years agoBuild: Go back to _POSIX_C_SOURCE=200112L
Uwe Hermann [Fri, 28 Aug 2015 16:34:34 +0000 (18:34 +0200)]
Build: Go back to _POSIX_C_SOURCE=200112L

9 years agoconfigure: Enable largefile support on 32-bit systems
Daniel Elstner [Wed, 26 Aug 2015 21:12:28 +0000 (23:12 +0200)]
configure: Enable largefile support on 32-bit systems