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

Stuff
Saturday, April 19th, 2008 at 7:04:31pm UTC 

  1.         #define IMX31_IADR    0x00
  2.         #define IMX31_IFDR    0x04
  3.         #define IMX31_I2CR    0x08
  4.         #define IMX31_I2SR    0x0c
  5.         #define IMX31_I2DR    0x10
  6.  
  7.         #define IMX31_I2CR_IEN        (1 << 7)
  8.         #define IMX31_I2CR_IIEN       (1 << 6)
  9.         #define IMX31_I2CR_MSTA       (1 << 5)
  10.         #define IMX31_I2CR_MTX        (1 << 4)
  11.         #define IMX31_I2CR_TX_NO_AK   (1 << 3)
  12.         #define IMX31_2CR_RSTA       (1 << 2)
  13.  
  14.         #define IMX31_I2SR_ICF        (1 << 7)
  15.         #define IMX31_I2SR_IBB        (1 << 5)
  16.         #define IMX31_I2SR_IIF        (1 << 1)
  17.         #define IMX31_I2SR_RX_NO_AK   (1 << 0)
  18.  
  19.         #ifdef I2C_IMX31_CFG_PORT1
  20.                 #define IMX31_I2C_BASE        0x43f80000
  21.         #elif defined (I2C_IMX31_CFG_PORT2)
  22.                 #define IMX31_I2C_BASE        0x43f98000
  23.         #elif defined (I2C_IMX31_CFG_PORT3)
  24.                 #define IMX31_I2C_BASE        0x43f84000
  25.         #else
  26.                 #error "define I2C_IMX31_CFG_PORTx to use the imx31 I2C driver"
  27.         #endif

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 expire by default in one month. 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
worth-right
worth-right
worth-right