Basis for the C2 protocol from Silicon Labs.

Dependencies:   mbed

Revision:
15:0ccb0277d98e
Parent:
14:c24f608a8adb
Child:
16:844edb89d863
diff -r c24f608a8adb -r 0ccb0277d98e main.cpp
--- a/main.cpp	Mon May 26 17:36:09 2014 +0000
+++ b/main.cpp	Mon May 26 17:38:22 2014 +0000
@@ -212,7 +212,7 @@
     c2_write_ar(C2_REG_FPCTL);
     if ((c2_write_dr(0x02)+c2_write_dr(0x04)+c2_write_dr(0x01))<0)
         fatal("cannot enable PI");
-    wait_us(21);
+    wait_ms(21);
 }
 
 static void c2_read_mem(int type, uint16_t address, uint8_t size, uint8_t *buf) {