summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-08-03nrf24l01: prettify annotation outputJens Steinhauser
2014-07-31tests/pdtest: Small fix to make it work with Python 3.2.Uwe Hermann
Python 3.2 doesn't yet have the copy() method for lists: AttributeError: 'list' object has no attribute 'copy'
2014-07-31tests/check_session.c: Fix compiler warning.Uwe Hermann
This fixes 'warning: "_POSIX_C_SOURCE" redefined' with some Python versions.
2014-07-23Drop references to obsolete sigrok-commits mailing list.Uwe Hermann
2014-07-20runtc: Update to the new libsigrok session API.Uwe Hermann
(also fixes the build for libsigrokdecode)
2014-07-20Fix incorrect doxygen comment for srd_decoder_list().Uwe Hermann
This fixes bug #378.
2014-07-15All PDs: Minor whitespace and consistency fixes.Uwe Hermann
- 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.
2014-07-09uart/i2cfilter: Don't check multiple-choice options.Uwe Hermann
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.
2014-07-09Various PDs: Minor consistency fixes.Uwe Hermann
(Consistently use single-quotes for all Python strings everywhere)
2014-07-09Various PDs: Throw SamplerateError instead of Exception.Uwe Hermann
Also, 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.
2014-07-09All PDs: Drop unneeded exceptions.Uwe Hermann
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.
2014-07-08Add nRF24L01(+) protocol decoder.Jens Steinhauser
2014-07-08spi: Fix order of MISO/MOSI data items.Jens Steinhauser
2014-07-08pdtest: Use new exception output.Bert Vermeulen
2014-07-08Make exception output more predictable.Bert Vermeulen
2014-07-08Remove dependency on Python.h from public API headerMarcus Comstedt
This prevents Python.h from being included into client code, where it can mess things up by e.g. redefining _POSIX_C_SOURCE.
2014-07-08runtc: Fix incorrect include directiveMarcus Comstedt
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.
2014-07-08srd_decoder_load_all_path: Support zipimport pathsMarcus Comstedt
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.
2014-06-27spi: Add coverage tests for all exceptions.Bert Vermeulen
2014-06-27spi: Add coverage tests for all mosi/miso and lsb/msb combinations.Bert Vermeulen
2014-06-27spi: Refactor for more coverage, and remove dead code.Bert Vermeulen
2014-06-26runtc: PD option value is a GVariant, not string.Bert Vermeulen
This is still broken: it needs to properly check the expected type of the option, not just blindly assume G_VARIANT_TYPE_STRING.
2014-06-24pdtest: Generate report regardless of verbose mode.Bert Vermeulen
2014-06-24edid: Add another test, covering more code in the PD.Bert Vermeulen
2014-06-24pdtest: Generate a report listing missed lines across the whole PD.Bert Vermeulen
2014-06-23i2c: Generate proper exception for missing samplerate, and test for it.Bert Vermeulen
Also remove some dead code.
2014-06-23pdtest/runtc: Support for output type 'exception'.Bert Vermeulen
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.
2014-06-15do not add check to common cflags/libsMike Frysinger
Only the unittests use these flags, so don't go linking them in for the main library too.
2014-06-15fix test operatorMike Frysinger
The == operator is not in POSIX.
2014-05-23runtc.c: Fix compiler warningKumar Abhishek
c was of type char, while getopt returns an int. This caused a compiler warning during build.
2014-05-23libsigrokdecode: Fix make -j issue with build_runtcKumar Abhishek
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.
2014-05-09Add python as a pkg-config dependencyAbhishek Kumar
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).
2014-05-06configure.ac: Bump package version to 0.3.0.Uwe Hermann
2014-05-06configure.ac: Bump libtool/library version from 1:0:0 to 2:0:0.Uwe Hermann
The libtool current:revision:age numbers change from 1:0:0 to 2:0:0. Details: http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info 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.
2014-05-06Bump libsigrok (optional) dependency to 0.3.0.Uwe Hermann
2014-05-06NEWS: Add list of user-visible changes so far.Uwe Hermann
2014-05-05Makefile.am: Add HACKING to the tarball.Uwe Hermann
2014-05-04Only load and use PDs of API version 2.Uwe Hermann
Decoders that implement any other PD API version are per definition not compatible and cannot work with this library version.
2014-05-04README: Document python3-coverage requirement for tests.Uwe Hermann
2014-05-04Fix 'make install' on OSes where 'python3' doesn't exist.Uwe Hermann
Sometimes the Python 3 executable is called just 'python3', sometimes it is called 'python3.4' and so on. Handle all cases transparently for the user. Before: $ make install /usr/bin/env: python3: No such file or directory After: $ make install python3.4 ./tools/install-decoders -i ./decoders -o [...] Installing 36 protocol decoders: [...]
2014-05-04HACKING: Update to current conventions.Uwe Hermann
(mostly copied from libsigrok, which normally has the same conventions)
2014-05-04Mark some variables more consistently as SRD_PRIV.Uwe Hermann
2014-05-04log.c: Avoid using the same name for a variable and enum.Uwe Hermann
2014-05-04Update a few Doxygen @since tags.Uwe Hermann
2014-05-04libsigrokdecode.h: Give type names to all enumerations.Uwe Hermann
This matches the libsigrok conventions, and will be required (or at least nice to have) for libsigrokdecode language bindings later.
2014-05-04tools/install-decoders: Minor consistency fix.Uwe Hermann
2014-05-03Move srd_check_init() to decoder.c and make it static.Uwe Hermann
The function srd_check_init() is only used in decoder.c.
2014-05-03Make 'pd_list' static, it's only used in one file.Uwe Hermann
2014-05-03Make the srd_Decoder type private.Uwe Hermann
It's not public API and is not used (nor should it be used) by any frontends.
2014-05-03srd.c: Fix typo to avoid Doxygen output for srd_check_init().Uwe Hermann