diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2009-05-21 14:31:47 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2009-05-21 14:31:47 +0000 |
commit | c0859f04be72b3083e7f9e2a6abbc3700cc81715 (patch) | |
tree | b005513b49a23b6c6106d93be545e69437921e4e /firmware/target/arm | |
parent | ab222c170562ba2f89827c2e3185ae359eface76 (diff) |
Move private #defines from i2c-pp.h to i2c-pp.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21014 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/i2c-pp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/target/arm/i2c-pp.c b/firmware/target/arm/i2c-pp.c index fef2082e60..b162606680 100644 --- a/firmware/target/arm/i2c-pp.c +++ b/firmware/target/arm/i2c-pp.c @@ -36,6 +36,17 @@ #include "ascodec.h" #include "as3514.h" +#define I2C_CTRL (*(volatile unsigned char*)(I2C_BASE+0x00)) +#define I2C_ADDR (*(volatile unsigned char*)(I2C_BASE+0x04)) +#define I2C_DATA(X) (*(volatile unsigned char*)(I2C_BASE+0xc+(4*X))) +#define I2C_STATUS (*(volatile unsigned char*)(I2C_BASE+0x1c)) + +/* I2C_CTRL bit definitions */ +#define I2C_SEND 0x80 + +/* I2C_STATUS bit definitions */ +#define I2C_BUSY (1<<6) + /* Local functions definitions */ static struct mutex i2c_mtx SHAREDBSS_ATTR; |