All pastes #396066 Raw Edit

Something

public text v1 · immutable
#396066 ·published 2007-03-15 14:00 UTC
rendered paste body
+#if CONFIG_I2C == I2C_PP5020
+#include "i2c-pp5020.h"
+int fmradio_i2c_write(unsigned char address, const unsigned char* buf,
+                      int count)
+{
+    int i;
+    for (i=0;i<count;i++){
+        pp_i2c_send(address, i,buf[i]);
+    }
+    
+    return 0;
+}
 
+int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count)
+{
+    return i2c_readbytes(address, 0, count, buf);
+}
+