On Tue, Apr 16, 2013 at 10:09 AM, Laurent Gauch
<[email protected]>wrote:
> **
>
>
>
>> Don't you still end up with an ft2232 driver?
>
>
> When we say driver we mean the interface driver inside OpenOCD. Lousy
> name, since they're easily confused with operating system drivers with
> similar names.
>
> Yes, but we should avoid talking about "interface driver". You have
> "interface" (jlink - stlink - ft2232) and you have driver (libusb - d2xx -
> vcp ...).
>
> We should stop using driver term everywhere, but use it only for KERNEL
> DRIVER.
>
Neither of libusb and d2xx are drivers, they're libraries.
> With Dominic Rath, we had a better definition since the ft2232 was an
> interface and not a driver ! For the TCL you call an interface and not a
> driver.
> This will really help the end user to understand what-is-what.
>
"Interface" is a similarly lousy name since it's such a generic term that
it could mean just about anything. We replaced many uses of "interface"
with "adapter" for good reason. But we can't really give the code modules,
that control ("drives") the hardware, the name "adapters". Maybe "adapter
drivers" but there you have the driver term again.
>
> The new ftdi driver uses libusb directly to talk raw USB with the chip.
> So no, there's no ft2232 specific code involved other than the ftdi driver
> in OpenOCD.
>
> We should change the "new ftdi driver" term by "mpsse interface" term. It
> is never too late.
> From the TCL you want open and init a mpsse interface and not any ftdi
> chip. Calling something "FTDI driver" in openocd is really not helping the
> end-users, since they think, at first point of view, we talk about the
> kernel driver D2xx or libFTDI or libUSB ...
>
Do you really think that most users know what MPSSE is and why they need it
with their FTDI-based adapter? I don't. The ftdi "adapter driver" (or
whatever) is for FTDI-based adapters and it makes little sense to call it
anything else. Ok, there are other adapters that contain a FTDI chip that
aren't supported by the ftdi "adapter driver" (such as many versions of the
USB-Blaster) but I don't think users generally get confused about that.
/Andreas
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel