I2CRTOS Driver by Helmut Schmücker. Removed included mbed-rtos library to prevent multiple definition. Make sure to include mbed-rtos library in your program!

Fork of I2cRtosDriver by Helmut Schmücker

Files at this revision

API Documentation at this revision

Comitter:
pHysiX
Date:
Sat May 17 11:56:46 2014 +0000
Parent:
15:6292f189a9e9
Commit message:
Modified to make 400kHz default

Changed in this revision

I2CMasterRtos.h Show annotated file Show diff for this revision Revisions of this file
diff -r 6292f189a9e9 -r 2c6432b37cce I2CMasterRtos.h
--- a/I2CMasterRtos.h	Fri May 16 12:38:13 2014 +0000
+++ b/I2CMasterRtos.h	Sat May 17 11:56:46 2014 +0000
@@ -21,7 +21,7 @@
     *
     *  @note Has to be created in a thread context, i.e. within the main or some other function. A global delaration does not work
     */
-    I2CMasterRtos(PinName sda, PinName scl, int freq=100000):m_drv(sda,scl,freq) {}
+    I2CMasterRtos(PinName sda, PinName scl, int freq=400000):m_drv(sda,scl,freq) {}
 
     /** Set the frequency of the I2C interface
      *