From: Olivier Matz Date: Thu, 26 Jun 2014 18:34:58 +0000 (+0200) Subject: i2cm: decrease clock speed (could be restored later) X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0a4bfd31b0b0b50659a6fbd8dfa283ba2603aabf;p=protos%2Fimu.git i2cm: decrease clock speed (could be restored later) --- diff --git a/i2cm_sw.h b/i2cm_sw.h index 53b716a..4a51e57 100644 --- a/i2cm_sw.h +++ b/i2cm_sw.h @@ -30,8 +30,8 @@ typedef uint8_t i2cm_state; #define I2CM_SENT_STOP 7 #define I2CM_RECEIVED_BYTE 8 -#define I2CM_DELAY() _delay_loop_2(1) -#define I2CM_BIT_DELAY() _delay_loop_2(1) +#define I2CM_DELAY() _delay_loop_2(4) +#define I2CM_BIT_DELAY() _delay_loop_2(4) void i2cm_init(void); void i2cm_manage(void);