aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/i2c_lld.c
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-26 21:28:14 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-26 21:28:14 +0000
commitd0397838aeed91201230290ec052fe2f94840b56 (patch)
tree36ea2f9a52f0640eae872ff2c79b065d8388f0e4 /os/hal/platforms/STM32/i2c_lld.c
parent44578159320d9d9bf89e8ac3b4d21635e8a45f10 (diff)
downloadChibiOS-d0397838aeed91201230290ec052fe2f94840b56.tar.gz
ChibiOS-d0397838aeed91201230290ec052fe2f94840b56.tar.bz2
ChibiOS-d0397838aeed91201230290ec052fe2f94840b56.zip
I2C. Small bugfix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2844 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/i2c_lld.c')
-rw-r--r--os/hal/platforms/STM32/i2c_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/i2c_lld.c b/os/hal/platforms/STM32/i2c_lld.c
index cb75b6da2..804246b2d 100644
--- a/os/hal/platforms/STM32/i2c_lld.c
+++ b/os/hal/platforms/STM32/i2c_lld.c
@@ -297,8 +297,8 @@ void i2c_lld_start(I2CDriver *i2cp) {
#endif
#if STM32_I2C_USE_I2C2
if (&I2CD2 == i2cp) {
- NVICEnableVector(I2C2_EV_IRQn, STM32_I2C2_IRQ_PRIORITY);
- NVICEnableVector(I2C2_ER_IRQn, STM32_I2C2_IRQ_PRIORITY);
+ NVICEnableVector(I2C2_EV_IRQn, STM32_I2C_I2C2_IRQ_PRIORITY);
+ NVICEnableVector(I2C2_ER_IRQn, STM32_I2C_I2C2_IRQ_PRIORITY);
RCC->APB1ENR |= RCC_APB1ENR_I2C2EN; // I2C 2 clock enable
}
#endif