Skip to content

Conversation

@l29ah
Copy link

@l29ah l29ah commented Nov 4, 2018

Feel free to send your PR's to https://github.com/l29ah/libmpsse/

crossleyjo and others added 30 commits October 20, 2015 17:52
I found that calling the SetDirection function from python led to an TypeError due to the uint8_t parameter

int SetDirection(struct mpsse_context *mpsse, uint8_t direction);

I found the solution on stack exchange, recompiled, and confirmed that the error disappeared.

https://stackoverflow.com/questions/8897294/swig-python-c-how-to-use-type-int8-t
Partial reads can be can be correct.
Implement same behaviour for Transfer()
Return NULL on errors.
Fixes warnings like:
cc: warning: -lftdi: 'linker' input unused
files & non-swig.  This can help fix parallel builds - building with
incorrect object file or trying to link with files that are still
being written.

See devttys0#16
Signed-off-by: Sergey Alirzaev <zl29ah@gmail.com>
… below that.

Signed-off-by: Sergey Alirzaev <zl29ah@gmail.com>
Signed-off-by: Sergey Alirzaev <zl29ah@gmail.com>
added -DLIBFTDI1 to fast.c compiler options for compilation on fedora
migrate README to markdown
meanwhile making -Wextra happy
l29ah and others added 30 commits May 30, 2018 09:45
Also, define _POSIX_C_SOURCE in Makefile.in to get rid of the compiler
warning.
This is a large change, but since it involved the changes to the build
system, it is extremely hard to split into smaller chunks.

Use automake to generate makefiles. This documentation was used to write
build rules for python wrappers in Makefile.am:
https://github.com/swig/swig/wiki/FAQ#autotools-integration

configure.ac rewritten substantially to use existing checks and
canonical m4sh constructs, where applicable.

The check for LibFTDI version in the source code has been changed to a
canonical "HAVE_LIBFTDI".
 - Package "libtool" must be installed
 - "autoreconf --install" is necessary to create missing files
 - config.h must be created
The bug should never happen, but the convoluted logic of
fast_build_block_buffer makes it difficult for the compiler to understand it.
Verified with FT4232H Mini Module.
This reverts commit bf2cafe.
apparently libftdi in Ubuntu 16.04.6 doesn't provide that hack
just get plenty of ftdi errors but whatever
fixes #7
Don't look for swig or python if the flag --disable-python is used.

This allows to have a minimalistic build environment without a python
installation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.