diff options
| author | Keith Packard <keithp@keithp.com> | 2008-12-26 23:05:04 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2008-12-26 23:05:04 -0800 | 
| commit | 1264c3676e95427bba5d01e05c303d036a7f9eca (patch) | |
| tree | 94ac4f3ad4c714798c90b7e057c153b67ca0c877 /lib/ccdbg-manual.c | |
| parent | d2d9cfd74fd66836c913c02276e09136d83b35dc (diff) | |
Switch to libusb-1.0 and use async interface.
The async libusb interface offers substantial performance benefits by not
making each command wait for the reply. This makes talking over this
interface almost reasonable.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'lib/ccdbg-manual.c')
| -rw-r--r-- | lib/ccdbg-manual.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ccdbg-manual.c b/lib/ccdbg-manual.c index b83dc450..b48f8bb1 100644 --- a/lib/ccdbg-manual.c +++ b/lib/ccdbg-manual.c @@ -59,7 +59,7 @@ ccdbg_manual(struct ccdbg *dbg, FILE *input)  		get_bit(line, 4, 'R', CC_RESET_N, &set, &mask);  		if (mask != (CC_CLOCK|CC_DATA|CC_RESET_N)) {  			uint8_t	read; -			read = ccdbg_read(dbg); +			ccdbg_read(dbg, &read);  			ccdbg_print("\t%c %c %c", CC_CLOCK|CC_DATA|CC_RESET_N, read);  			if ((set & CC_CLOCK) == 0)  				printf ("\t%d", (read&CC_DATA) ? 1 : 0);  | 
