First Publish. Works fine.

Dependents:   unzen_sample_LPC4088_quickstart

Revision:
1:9710fb328a08
Parent:
0:5ac19c994288
Child:
2:6613e62da521
--- a/unzen_hal.h	Sun Apr 10 12:37:10 2016 +0000
+++ b/unzen_hal.h	Tue Apr 12 05:51:45 2016 +0000
@@ -9,10 +9,19 @@
         // By this HAL, the I2S have to become : 
         // - slave mode
         // - clock must be ready
-        // - pins must be configured.
         // - Interrupt enable.
     void hal_i2s_setup();
     
+        // configure the pins of I2S and then, wait for WS. 
+        // This waiting is important to avoid the delay between TX and RX.
+        // The HAL API will wait for the WS changes from left to right then return.
+        // The procesure is : 
+        // 1. configure all pin as GPIO
+        // 2. wait the WS
+        // 3. configure all pin as I2S
+    void hal_i2s_pin_config_and_wait_ws();
+
+    
         // Start I2S transfer. Interrupt starts  
     void hal_i2s_start();