APP: Major changes in an interface driver code.
commite1308df1a62d5c0011911283ee54b3698cd80f91
authorTomek CEDRO <cederom@tlen.pl>
Thu, 24 Oct 2013 18:59:54 +0000 (24 20:59 +0200)
committerTomek CEDRO <cederom@tlen.pl>
Thu, 24 Oct 2013 19:05:04 +0000 (24 21:05 +0200)
tree531a452608cf8d830342e369a2aed41ebbdeefe9
parenteabda460e0575bf0e6f63cd2a69e848a7da98c59
APP: Major changes in an interface driver code.

Interface driver (structure) now contains all necessary functions to operate.
This is important for drivers other than using libftdi, they are now possible.
Existing functions based on libftdi were renamed to contain "ftdi" string.
This change makes it possible to experiment with new async libusb1 interface,
that would talk to FTDI chip directly and hopefully will increase performance.
LibSWD driver bridge now use function pointers from interface structure,
these are "bitbang", "transfer_bits" and "transfer_bytes".
libswd_driver_t was extended with (void*)interface field to hold the routines.
src/libswd.h
src/libswd_app.c
src/libswd_app.h