From: Bdale Garbee Date: Fri, 15 Feb 2008 01:19:21 +0000 (-0700) Subject: switching to 12 Mhz xtal so USB functions correctly X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=33bdfc9395c2fe1736f8bd99d367456efaba65c1;p=fw%2Fopenalt switching to 12 Mhz xtal so USB functions correctly --- diff --git a/i2c/i2cInt.c b/i2c/i2cInt.c index 24cb26d..016fd2b 100644 --- a/i2c/i2cInt.c +++ b/i2c/i2cInt.c @@ -187,10 +187,9 @@ void i2cInit (void) I2C0_CONSET = I2C_CONSET_I2EN; #ifdef FC1025 // the Microchip 24FC1025 can handle a 1 Mhz clock - // PCLK / (i2c_clock * 2), with 48 Mhz PCLK that's 24... - // for AltusMetrum, 14.7456 Mhz xtal, it's 29.4912, use 30. - I2C0_SCLL = 30; - I2C0_SCLH = 30; + // PCLK / (i2c_clock * 2), with 12 Mhz xtal and 48 Mhz PCLK that's 24... + I2C0_SCLL = 24; + I2C0_SCLH = 24; #else I2C0_SCLL = 240; I2C0_SCLH = 240;