Subversion Repositories NaviCtrl

Compare Revisions

Ignore whitespace Rev 790 → Rev 791

/trunk/i2c.c
326,7 → 326,7
I2C_GenerateSTOP (I2C0, ENABLE);
VIC_ITCmd(I2C0_ITLine, DISABLE);
I2C0_Bus.State = I2C_STATE_IDLE;
I2C1_Bus.Error = I2C_ERROR_NONE;
I2C0_Bus.Error = I2C_ERROR_NONE;
return;
}
else
338,8 → 338,8
default: // invalid direction
I2C_GenerateSTOP (I2C0, ENABLE);
VIC_ITCmd(I2C0_ITLine, DISABLE);
I2C1_Bus.State = I2C_STATE_IDLE;
I2C1_Bus.Error = I2C_ERROR_UNKNOWN;
I2C0_Bus.State = I2C_STATE_IDLE;
I2C0_Bus.Error = I2C_ERROR_UNKNOWN;
return;
}
// enable acknowledge