The branch, new-baudrate-code has been updated
via 3c9ef8f8c6951ac8245b3b6c6eb98758fe06ec4e (commit)
from e0d70e3556d3648f09f61d7d0922dc746251dade (commit)
- Log -----------------------------------------------------------------
commit 3c9ef8f8c6951ac8245b3b6c6eb98758fe06ec4e
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date: Fri Sep 9 11:34:02 2011 +0200
Adjust unit test to match baudrate calculation for AM type chips
-----------------------------------------------------------------------
Summary of changes:
test/baudrate.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/baudrate.cpp b/test/baudrate.cpp
index d0e2cc4..29bbd20 100644
--- a/test/baudrate.cpp
+++ b/test/baudrate.cpp
@@ -124,7 +124,7 @@ BOOST_AUTO_TEST_CASE(TypeAMFixedBaudrates)
ftdi->type = TYPE_AM;
map<int, calc_result> baudrates;
- baudrates[183] = calc_result(183, 16383, 3, 48);
+ baudrates[183] = calc_result(183, 16383, 0, 48);
baudrates[300] = calc_result(300, 10000, 0, 48);
baudrates[600] = calc_result(600, 5000, 0, 48);
baudrates[1200] = calc_result(1200, 2500, 0, 48);
@@ -141,12 +141,12 @@ BOOST_AUTO_TEST_CASE(TypeAMFixedBaudrates)
baudrates[1000000] = calc_result(1000000, 3, 0, 48);
baudrates[1090512] = calc_result(1000000, 3, 0, 48);
baudrates[1090909] = calc_result(1000000, 3, 0, 48);
- baudrates[1090910] = calc_result(1200000, 2, 1, 48);
+ baudrates[1090910] = calc_result(1000000, 3, 0, 48);
baudrates[1200000] = calc_result(1200000, 2, 1, 48);
baudrates[1333333] = calc_result(1333333, 2, 2, 48);
baudrates[1411764] = calc_result(1411765, 2, 3, 48);
baudrates[1500000] = calc_result(1500000, 2, 0, 48);
- baudrates[2000000] = calc_result(2000000, 1, 0, 48);
+ baudrates[2000000] = calc_result(1500000, 2, 0, 48);
baudrates[3000000] = calc_result(3000000, 0, 0, 48);
test_baudrates(ftdi, baudrates);
hooks/post-receive
--
port libftdi to libusb-1.0
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|