aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms')
-rwxr-xr-xos/hal/platforms/AT91SAM7/i2c_lld.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/platforms/AT91SAM7/i2c_lld.c b/os/hal/platforms/AT91SAM7/i2c_lld.c
index 94e2d8cc2..2d113824e 100755
--- a/os/hal/platforms/AT91SAM7/i2c_lld.c
+++ b/os/hal/platforms/AT91SAM7/i2c_lld.c
@@ -200,7 +200,8 @@ void i2c_lld_init(void) {
AT91C_BASE_PIOA->PIO_PPUDR = AT91C_PA0_TWD | AT91C_PA1_TWCK;
AIC_ConfigureIT(AT91C_ID_TWI,
- AT91C_AIC_SRCTYPE_INT_HIGH_LEVEL, TWI_IRQHandler);
+ AT91C_AIC_SRCTYPE_INT_HIGH_LEVEL | SAM7_I2C_I2C1_IRQ_PRIORITY,
+ TWI_IRQHandler);
#endif /* STM32_I2C_USE_I2C1 */
}