diff options
author | Tomasz Moń <desowin@gmail.com> | 2011-12-05 09:53:23 +0000 |
---|---|---|
committer | Tomasz Moń <desowin@gmail.com> | 2011-12-05 09:53:23 +0000 |
commit | bac6a70184b18ca17a46b3ed955944e1a4d3f032 (patch) | |
tree | b037d8e36e7d76c32d34de9c72f20dab3ec816ec /firmware/target/arm/tms320dm320/i2c-dm320.h | |
parent | 4811b516a35ab6d391cc738c17b9aa8a26505fbe (diff) | |
download | rockbox-bac6a70184b18ca17a46b3ed955944e1a4d3f032.tar.gz rockbox-bac6a70184b18ca17a46b3ed955944e1a4d3f032.zip |
Sansa Connect: Revise codec initialization/shutdown.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31149 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/i2c-dm320.h')
-rw-r--r-- | firmware/target/arm/tms320dm320/i2c-dm320.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/target/arm/tms320dm320/i2c-dm320.h b/firmware/target/arm/tms320dm320/i2c-dm320.h index be7d02ed4d..7dfc19f046 100644 --- a/firmware/target/arm/tms320dm320/i2c-dm320.h +++ b/firmware/target/arm/tms320dm320/i2c-dm320.h | |||
@@ -19,6 +19,18 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | #ifndef I2C_DM320_H | ||
23 | #define I2C_DM320_H | ||
24 | |||
25 | #include "system.h" | ||
26 | |||
22 | void i2c_init(void); | 27 | void i2c_init(void); |
23 | int i2c_write(unsigned short address, const unsigned char *data, int count); | 28 | int i2c_write(unsigned short address, const unsigned char *data, int count); |
24 | int i2c_read(unsigned short address, unsigned char* buf, int count); | 29 | int i2c_read(unsigned short address, unsigned char* buf, int count); |
30 | |||
31 | #ifdef HAVE_SOFTWARE_I2C | ||
32 | int i2c_read_bytes(unsigned short address, unsigned short reg, | ||
33 | unsigned char* buf, int count); | ||
34 | #endif | ||
35 | |||
36 | #endif | ||