>>>>> "Ale" == Ale Max <alemaxx@xxxxxxxxxx> writes:
Ale> Hello,
Ale> I have by now written several tools to program MCUs (pic18,pic24,
Ale> at89) using my ft232 breakout board. One thing that annoys me
Ale> little bit is that I have to manually disconnect the ft232 in order
Ale> to get back the ttyUSBn. So:
Ale> Is here a libftdi call that quits bb-mode and gives me back my
Ale> serial adapter?
libusb-1 knows the call
int libusb_attach_kernel_driver(libusb_device_handle *dev, int interface);
and libftdi could call it. However the circumstances when to call it need to
be aggreed on. Calling libusb_attach_kernel_driver on close unconditionally
is wrong on many occacion, to name when you call a libftdi programm many
times without using the serial driver in between. So either we
- add a flag to ftdi_usb_close()
- or we add some flag in the ftdi_context that we can set with some call and
evaluate on ftdi_usb_close()
Opinions?
--
Uwe Bonnes bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|