Something
- +#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);
- +}
- +