The unified diff between revisions [a2621a92..] and [dea51752..] is displayed below. It can also be downloaded as a raw diff.
# # old_revision [a2621a92a8c03a907239e78df69f38370d023a70] # new_revision [dea51752ff3061ddca80de6685b04dac53ac77e1] # # patch "i2c.c" # from [1d978ba6c211e6b68c567fa852d9cbefe8ebad13] # to [b6b9ee4258edaf778f2fc0602e206e9e47d38496] # ============================================================ --- i2c.c 1d978ba6c211e6b68c567fa852d9cbefe8ebad13 +++ i2c.c b6b9ee4258edaf778f2fc0602e206e9e47d38496 @@ -25,17 +25,12 @@ void init_i2c(void) { IREG(I2CONSET) = 0x40; /* Enable I2C ready for Master Tx */ /* Set up for just under 400kHz */ -#if 0 +#ifdef I2C_FAST IWREG(I2SCLL) = (25 * 100); IWREG(I2SCLH) = (12 * 100); #else -# if 0 - IWREG(I2SCLL) = 1475; /* ~5kHz */ - IWREG(I2SCLH) = 1475; -# else IWREG(I2SCLL) = 73; /* ~100kHz */ IWREG(I2SCLH) = 73; -# endif #endif }