git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7bdae7c
)
Baud rate generation is the same as with FT2232H/FT232H
author
Uwe Bonnes
<bon@elektron.ikp.physik.tu-darmstadt.de>
Wed, 20 Jul 2011 09:12:37 +0000 (11:12 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Wed, 27 Jul 2011 16:10:10 +0000 (18:10 +0200)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
2a97942
..
9f892d3
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-1075,7
+1075,7
@@
static int ftdi_convert_baudrate(int baudrate, struct ftdi_context *ftdi,
}
// Split into "value" and "index" values
*value = (unsigned short)(encoded_divisor & 0xFFFF);
- if (ftdi->type == TYPE_2232C || ftdi->type == TYPE_2232H || ftdi->type == TYPE_4232H)
+ if (ftdi->type == TYPE_2232C || ftdi->type == TYPE_2232H || ftdi->type == TYPE_4232H || ftdi->type == TYPE_232H )
{
*index = (unsigned short)(encoded_divisor >> 8);
*index &= 0xFF00;