libftdi Archives
|
From: | "E.S. Rosenberg" <es.rosenberg+libftdi.i2net@xxxxxxxxx> |
---|---|
To: | libftdi@xxxxxxxxxxxxxxxxxxxxxxx |
Date: | Sun, 18 May 2014 01:30:39 +0300 |
2014-04-30 16:25 GMT+03:00 Chris <mailingliste.chris@xxxxxxxxx>: hello folks, ftdi_deinit() de-initialized/frees all the different structures pointed to inside the ftdi_context and exits if the passed context pointer is null. ftdi_free() runs ftdi_deinit() and then free() on the ftdi_context, so if you run that twice you are trying to release memory to the OS that you already released. The moment you start something that uses libftdi it is supposed to unload the ftdi_sio kernel driver for the device, afaik it doesn't get automatically reloaded after the program terminates so you would have to do modprobe ftdi_sio usbserial to again have a ttyUSBx. This is a setting as far as I can tell so you may be able to change it and leave ftdi_sio loaded but I doubt that that will result in anything good since that would just mean two different programs trying to access the same device concurrently... also the combination of ftdi_disable_bitbang, ftdi_usb_close and ftdi_deinit will not work for me. To do what? Regards, Eli
libftdi - see http://www.intra2net.com/en/developer/libftdi for details. |
Current Thread |
---|
|