diff packages/io/serial/current/tests/ser_test_protocol.inl @ 20:5f5102441818 ecos-sw-1999-07-02

Merge from eCos master repository on 1999-07-02-23:17:07-BST
author jlarmour
date Fri, 02 Jul 1999 15:44:37 +0000
parents 4f2df4ab82c8
children 53104bbd5f99
line wrap: on
line diff
--- a/packages/io/serial/current/tests/ser_test_protocol.inl
+++ b/packages/io/serial/current/tests/ser_test_protocol.inl
@@ -473,6 +473,7 @@ change_config(cyg_io_handle_t handle, cy
 
     res = cyg_io_set_config(handle, CYG_IO_SET_CONFIG_SERIAL_INFO, 
                             &new_cfg, &len);
+    cyg_thread_delay(10);  // Some chips don't like changes to happen to fast...
 
     // Driver didn't like it. It will not have changed anything, so it's
     // safe to return now.
@@ -489,6 +490,7 @@ change_config(cyg_io_handle_t handle, cy
     // with the host.
     res = cyg_io_set_config(handle, CYG_IO_SET_CONFIG_SERIAL_INFO, 
                             &old_cfg, &len);
+    cyg_thread_delay(10);  // Some chips don't like changes to happen to fast...
     if (ENOERR != res) {
         diag_printf("change_config: set_config failed/1 (%d)\n", res);
         hang();
@@ -521,6 +523,7 @@ change_config(cyg_io_handle_t handle, cy
     len = sizeof(new_cfg);
     res = cyg_io_set_config(handle, CYG_IO_SET_CONFIG_SERIAL_INFO, 
                             &new_cfg, &len);
+    cyg_thread_delay(10);  // Some chips don't like changes to happen to fast...
     if (ENOERR != res) {
         diag_printf("change_config: set_config failed/2 (%d)\n", res);
         hang();
@@ -614,6 +617,7 @@ change_config(cyg_io_handle_t handle, cy
         len = sizeof(old_cfg);
         res = cyg_io_set_config(handle, CYG_IO_SET_CONFIG_SERIAL_INFO, 
                                 &old_cfg, &len);
+        cyg_thread_delay(10);  // Some chips don't like changes to happen to fast...
         if (res != ENOERR) {
             diag_printf("change_config: set_config failed/3 (%d)\n", res);
             hang();