Basis for the C2 protocol from Silicon Labs.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Ivop
Date:
Mon May 26 17:38:22 2014 +0000
Parent:
14:c24f608a8adb
Child:
16:844edb89d863
Commit message:
need to wait 21ms instead of 21us in enable_pi

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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) {