examples/benchmark/kernel-only_arm/hw/hw_i2c_bitbang.h

Go to the documentation of this file.
00001 
00042 #ifndef HW_I2C_BITBANG_H
00043 #define HW_I2C_BITBANG_H
00044 
00045 #warning TODO:This is an example implementation, you must implement it!
00046 
00047 #define SDA_HI  do { /* Implement me:Set SDA High by setting SDA pin as input */ } while (0)
00048 #define SDA_LO  do { /* Implement me:Set SDA Low by setting SDA pin as open collector output */ } while (0)
00049 #define SCL_HI  do { /* Implement me:Set SCL High by setting SCL pin as input */ } while (0)
00050 #define SCL_LO  do { /* Implement me:Set SCL Low by setting SCL pin as open collector output */ } while (0)
00051 
00052 
00053 #define SCL_IN       (true) /* Implement me: read SDA pin state */
00054 #define SDA_IN       (true) /* Implement me: read SCL pin state */
00055 
00059 #define I2C_BITBANG_HW_INIT do { /* Implement me! */ } while (0)
00060 
00064 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
00065 
00066 #endif /* HW_I2C_BITBANG_H */