**********
r22412 | batt | 2008-10-03 12:46:25 +0200 (Fri, 03 Oct 2008) | 1 line
Rename READ_BIT to I2C_READBIT.
**********
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1875
38d2e660-2303-0410-9eaa-
f027e97ec537
ticks_t start = timer_clock();
while (i2c_start())
{
- TWDR = id & ~READ_BIT;
+ TWDR = id & ~I2C_READBIT;
TWCR = BV(TWINT) | BV(TWEN);
WAIT_TWI_READY;
{
if (i2c_start())
{
- TWDR = id | READ_BIT;
+ TWDR = id | I2C_READBIT;
TWCR = BV(TWINT) | BV(TWEN);
WAIT_TWI_READY;
#include <cfg/compiler.h>
-#define READ_BIT BV(0)
+#define I2C_READBIT BV(0)
void i2c_init(void);
bool i2c_start_w(uint8_t id);