mini board PCU9669 (and PCA9665) sample code

Dependencies:   mbed PCU9669 utility PCA9665 I2C_slaves parallel_bus

Fork of mini_board_PCU9669_old by InetrfaceProducts NXP

Sample code for PCU9669 (PCU9661, PCA9663, PCA9661 and PCA9665) evaluation board.

PCU9669 evaluation board: Mini board PCU9669
User manual is available -> http://www.nxp.com/documents/user_manual/UM10580.pdf

Revision:
17:20837a1676d4
Parent:
8:6120bbbe3636
--- a/main_PCU9669.c	Wed Jul 11 10:54:55 2012 +0000
+++ b/main_PCU9669.c	Wed Jul 11 11:28:04 2012 +0000
@@ -3,7 +3,7 @@
  *  @author  Akifumi (Tedd) OKANO, NXP Semiconductors
  *  @version 1.0
  *  @date    26-Mar-2012
- *
+ * 
  *  Released under the MIT License: http://mbed.org/license/mit
  *
  *  An operation sample of PCU9669/PCA9665 I2C bus controller.
@@ -133,6 +133,8 @@
                 start( CH_UFM1 );
                 start( CH_UFM2 );
 
+                wait_sec( 0.01 );
+                count++;
 #if 0
                 if ( read_done ) {
                     buffer_read( CH_FM_PLUS, 2, 0, read_buffer, sizeof( read_buffer ) );
@@ -140,8 +142,6 @@
                     read_done   = 0;
                 }
 #endif
-                wait_sec( 0.01 );
-                count++;
             }
         }
         buffer_overwrite( CH_FM_PLUS, 0, 9, clear, 16 );