Changeset 1927
- Timestamp:
- 11/11/08 19:31:59 (2 months ago)
- Files:
-
- trunk/bertos/cfg/cfg_i2c.h (modified) (1 diff)
- trunk/bertos/drv/i2c.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bertos/cfg/cfg_i2c.h
r1926 r1927 55 55 * I2C_BACKEND_BUILTIN: Use (if present) the builtin i2c hardware. 56 56 * I2C_BACKEND_BITBANG: Use the emulated bitbang driver. 57 * \see drv/i2c.h for more information. 57 58 */ 58 59 #define CONFIG_I2C_BACKEND I2C_BACKEND_BUILTIN trunk/bertos/drv/i2c.h
r1926 r1927 46 46 /** 47 47 * I2C Backends. 48 * Sometimes your cpu does not have a builtin 49 * i2c driver or you don't want, for some reason, to 50 * use that. 51 * You can choose, at compile time, which backend to use. 48 52 * \{ 49 53 */ … … 52 56 /*\}*/ 53 57 58 59 /** 60 * I2c builtin prototypes. 61 * Do NOT use these function directly, instead, 62 * you can call the ones named without "_builtin_" 63 * and specify in cfg_i2c.h ( \see CONFIG_I2C_BACKEND) 64 * that you want the builtin backend. 65 * \{ 66 */ 54 67 void i2c_builtin_init(void); 55 68 bool i2c_builtin_start_w(uint8_t id); … … 58 71 bool i2c_builtin_put(uint8_t _data); 59 72 int i2c_builtin_get(bool ack); 73 /*\}*/ 60 74 75 /** 76 * I2c bitbang prototypes. 77 * Same thing here: do NOT use these function directly, instead, 78 * you can call the ones named without "_bitbang_" 79 * and specify in cfg_i2c.h ( \see CONFIG_I2C_BACKEND) 80 * that you want the bitbang backend. 81 * \{ 82 */ 61 83 void i2c_bitbang_init(void); 62 84 bool i2c_bitbang_start_w(uint8_t id); … … 65 87 bool i2c_bitbang_put(uint8_t _data); 66 88 int i2c_bitbang_get(bool ack); 67 89 /*\}*/ 68 90 69 91 #if CONFIG_I2C_BACKEND == I2C_BACKEND_BUILTIN
