diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-27 02:46:27 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-27 02:46:27 -0700 |
commit | 1a1d4a557a30e2e743936b828b654187ec562ca8 (patch) | |
tree | 1d94f019af0c45ee197f9de478c1dd8aff14abfa /src/stm/stm32l.h | |
parent | 9695a217e13f9d194b6dc40e2696017e5f8e8176 (diff) |
altos: Wait for i2c START condition before setting interrupt bits
This seems better than the random loop that it replaces, but I still
have no idea why this is required; it doesn't coorespond to the docs
at all...
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/stm32l.h')
-rw-r--r-- | src/stm/stm32l.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm/stm32l.h b/src/stm/stm32l.h index 60f0b6d0..ff8dddff 100644 --- a/src/stm/stm32l.h +++ b/src/stm/stm32l.h @@ -1255,7 +1255,7 @@ extern struct stm_i2c stm_i2c1, stm_i2c2; #define STM_I2C_CR2_FREQ_8_MHZ 8 #define STM_I2C_CR2_FREQ_16_MHZ 16 #define STM_I2C_CR2_FREQ_32_MHZ 32 -#define STM_I2C_CR2_FREQ_MASK 0x3f; +#define STM_I2C_CR2_FREQ_MASK 0x3f #define STM_I2C_SR1_SMBALERT 15 #define STM_I2C_SR1_TIMEOUT 14 |