Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate


Thursday, March 15th, 2007 at 2:00:45pm UTC 

  1. +#if CONFIG_I2C == I2C_PP5020
  2. +#include "i2c-pp5020.h"
  3. +int fmradio_i2c_write(unsigned char address, const unsigned char* buf,
  4. +                      int count)
  5. +{
  6. +    int i;
  7. +    for (i=0;i<count;i++){
  8. +        pp_i2c_send(address, i,buf[i]);
  9. +    }
  10. +   
  11. +    return 0;
  12. +}
  14. +int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count)
  15. +{
  16. +    return i2c_readbytes(address, 0, count, buf);
  17. +}
  18. +


Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)

Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus