From 9b11ca4993ac19f70f182e3cb0fb45537b2d5a4c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 12 May 2014 09:26:23 +0000 Subject: Fixed bug #496. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6930 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.c | 4 ++-- os/hal/ports/STM32/STM32F4xx/stm32_isr.h | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'os') diff --git a/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.c b/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.c index 9a88bedf5..c63a295a2 100644 --- a/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.c +++ b/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.c @@ -465,7 +465,7 @@ OSAL_IRQ_HANDLER(STM32_I2C2_ERROR_HANDLER) { * * @notapi */ -OSAL_IRQ_HANDLER(I2C3_EV_IRQHandler) { +OSAL_IRQ_HANDLER(STM32_I2C3_EVENT_HANDLER) { OSAL_IRQ_PROLOGUE(); @@ -479,7 +479,7 @@ OSAL_IRQ_HANDLER(I2C3_EV_IRQHandler) { * * @notapi */ -OSAL_IRQ_HANDLER(I2C3_ER_IRQHandler) { +OSAL_IRQ_HANDLER(STM32_I2C3_ERROR_HANDLER) { uint16_t sr = I2CD3.i2c->SR1; OSAL_IRQ_PROLOGUE(); diff --git a/os/hal/ports/STM32/STM32F4xx/stm32_isr.h b/os/hal/ports/STM32/STM32F4xx/stm32_isr.h index dc7fbd1ab..fee66ecd0 100644 --- a/os/hal/ports/STM32/STM32F4xx/stm32_isr.h +++ b/os/hal/ports/STM32/STM32F4xx/stm32_isr.h @@ -67,6 +67,11 @@ #define STM32_I2C2_EVENT_NUMBER 33 #define STM32_I2C2_ERROR_NUMBER 34 +#define STM32_I2C3_EVENT_HANDLER Vector160 +#define STM32_I2C3_ERROR_HANDLER Vector164 +#define STM32_I2C3_EVENT_NUMBER 72 +#define STM32_I2C3_ERROR_NUMBER 73 + /* * OTG units. */ @@ -140,12 +145,10 @@ /* * Ethernet */ -#define ETH_IRQHandler Vector134 +#define ETH_IRQHandler Vector134 /** @} */ - - /*===========================================================================*/ /* Driver pre-compile time settings. */ /*===========================================================================*/ -- cgit v1.2.3