aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-12-28NEWS: Update for 0.1.0 release0.1.0Marc Schink1-1/+1
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-12-28Add Doxygen output directory to .gitignoreMarc Schink1-0/+1
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-12-11Initialize variable to make scan-build happyMarc Schink1-0/+1
scan-build generates the following warning: ../../libjaylink/discovery.c:234:21: warning: Assigned value is garbage or undefined dev->serial_number = serial_number; The variable 'serial_number' is not initialized if the device has no valid serial number. This is not a real issue because the variable will never be accessed if the device has no valid serial number. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-12-08Add Doxyfile to .gitignoreMarc Schink1-0/+1
Thanks to Uwe Bonnes for reporting this. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-17README: Minor cosmetic fixesMarc Schink1-7/+7
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-17Fix package version in out-of-tree buildsMarc Schink1-2/+4
Do not determine the Git revision hash from the repository in the current working directory because, in some circumstances, the revision hash of a commit from a different repository is used. For example, this happens when 'configure' is called from within an other Git repository. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-17NEWS: Prepare for 0.1.0 releaseMarc Schink1-0/+5
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-15Makefile.am: Do not distribute version.hMarc Schink1-3/+2
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-15Minor code and documentation cleanupsMarc Schink17-94/+93
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-15Print error code in error messagesMarc Schink2-3/+6
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-15Improve error handling in jaylink_swo_get_speeds()Marc Schink1-2/+7
Cover all possible error codes which may be returned by a device. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-13Rename JTAG command version enumsMarc Schink2-6/+6
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-11Add project website URLMarc Schink3-1/+12
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-11configure.ac: Add 'check-news' Automake optionMarc Schink1-1/+1
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-11Add INSTALL to .gitignoreMarc Schink1-0/+1
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-11configure.ac: Use 'gnu' Automake strictnessMarc Schink1-1/+1
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-11Add ChangeLog fileMarc Schink1-0/+1
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-11Add AUTHORS fileMarc Schink1-0/+2
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-08Add initial NEWS fileMarc Schink1-0/+2
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-07Makefile.am: Remove README from EXTRA_DISTMarc Schink1-1/+1
The README file is always automatically distributed. For more information, see: https://www.gnu.org/software/automake/manual/html_node/Basics-of-Distribution.html Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-07Makefile.am: Add HACKING to EXTRA_DISTMarc Schink1-1/+1
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-05Doxygen: Add initial main pageMarc Schink1-0/+30
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-05Doxyfile: Add version.h to the input filesMarc Schink1-1/+2
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-05configure.ac: Add bug report email addressMarc Schink1-1/+1
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-05Add initial HACKING fileMarc Schink1-0/+68
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-05Doxyfile: Set PROJECT_NUMBER to current package versionMarc Schink4-8/+8
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-05Rearrange error codesMarc Schink2-7/+7
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-05configure.ac: Do not assign user variablesMarc Schink2-8/+11
Do not assign user variables (e.g. CFLAGS) in configure.ac, otherwise users are not able to modify them properly at 'make' and 'configure' invocation time. For more information, see: https://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html Thanks to Paul Fertser for spotting this. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-11-05Add support for library capabilitiesMarc Schink2-0/+27
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-10-29Use JAYLINK_ERR_IOMarc Schink9-4/+65
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-10-29Remove (__)JAYLINK_TIF_MAXMarc Schink2-7/+9
If necessary, a more general identifier which denotes the last element of an enum may be re-added later. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-10-25Rework code for libtool versioningMarc Schink3-15/+33
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-10-25Append Git revision hash to package versionMarc Schink4-20/+69
Append the short Git revision hash of the current commit to the package version if there is no release tag for the package version on it and Git is available. This makes the package version more informative and allows the distinction between development and release versions. This code is inspired by, but not derived from, a patch from Daniel Elstner for the libsigrok project. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-10-10Add more hardware typesMarc Schink1-1/+5
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-09-18Read SWO trace data in any caseMarc Schink1-7/+7
The device expects that the trace data is read even if the status code indicates an error. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-09-17Add example to jaylink_register() documentationMarc Schink1-0/+45
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-09-17transport: Fix timeout messagesMarc Schink1-4/+4
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-09-17Use error description in log messagesMarc Schink7-124/+242
Use a human-readable error description rather than just the error code in log messages. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-09-10Do not catch values not covered by an enumMarc Schink2-18/+12
Currently, the functions jaylink_select_interface() and jaylink_get_selected_interface() check if the target interface value returned by a device is covered by an enum. If this is not the case they fail with an error. This approach is very restrictive and may stop applications from working when using devices with target interfaces or other values which are not covered by an enum. It also requires to update libjaylink every time a new value is introduced. This could occur with every update of the device firmware. In the mean time applications would fail with such devices. Also, using this approach for jaylink_get_hardware_version() would make it impossible to retrieve the hardware version number of a device with a hardware type which is not yet covered by an enum. In the worst case an application would fail because jaylink_get_hardware_version() fails even though the application does not use the hardware type at all but the hardware version. Do not catch values returned by a device and not covered by an enum to overcome these problems. Instead, add a warning to the documentation of all functions which may return such values. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-09-09Minor documentation cleanupsMarc Schink14-90/+95
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-09-09Simplify jaylink_(un)register() APIMarc Schink2-28/+4
The additional information provided by jaylink_(un)register() is not yet documented and not at all necessary to (un)register a connection. Also, the API in its current state is not well thought out. Remove access to the additional information in favour of a simpler API. If necessary, the access may be re-added with a proper documentation and well thought out API in a future version. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-08-03Use string for IPv4 address in jaylink_connectionMarc Schink6-19/+125
Instead of representing the IPv4 address as 32-bit integer, use the much more convenient quad-dotted decimal string representation. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-08-03Avoid 'interface' identifier in public APIMarc Schink3-23/+23
Foolishly, 'interface' is a reserved keyword on Windows according to MSDN: https://msdn.microsoft.com/en-us/library/2kb28261.aspx Rename all 'interface' identifiers in the public API to avoid possible conflicts. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-08-03Allow jaylink_close() to return errorsMarc Schink2-4/+12
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-08-03Allow jaylink_exit() to return errorsMarc Schink2-3/+8
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-07-26configure.ac: Fix wrong equality operatorMarc Schink1-1/+1
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-07-26Rename J-Link device hardware typeMarc Schink1-2/+2
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-07-23README: Add supported operating systemsMarc Schink1-0/+14
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-07-23Minor code cleanupsMarc Schink13-144/+138
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
2016-07-22Rename library version macrosMarc Schink2-12/+12
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>