devttys0 / libmpsse

Open source library for SPI/I2C control via FTDI chips
259 stars 173 forks source link

dual MPSSE support? #28

Open slazav opened 7 years ago

slazav commented 7 years ago

I use the library with FT2232H chip ( http://www.ftdichip.com/Products/ICs/FT2232H.html ) which has two MPSSE interfaces. Now only one is supported in the library, IFACE_A is hardcoded here: https://github.com/devttys0/libmpsse/blob/master/src/mpsse.c#L59

I can recompile the library with IFACE_B and it works fine with my chip. Is it possible to add the interface selection?

yogggoy commented 7 years ago

@slazav, for choice port on ft2232h, you can use OPEN method https://github.com/devttys0/libmpsse/blob/master/src/mpsse.c#L94 https://github.com/devttys0/libmpsse/blob/master/docs/README.C#L4

but I think you've already found a solution in the past 4 months 😀