From 0dee37ffb30341110eea775caf72b3aa91fad75d Mon Sep 17 00:00:00 2001 From: ahb Date: Thu, 9 Mar 2017 11:29:01 +0100 Subject: [PATCH] use correct macro for irqid (fortunately both point to LPC43_IRQ_EXTINT+18) --- arch/arm/src/lpc43xx/lpc43_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/lpc43xx/lpc43_i2c.c b/arch/arm/src/lpc43xx/lpc43_i2c.c index 2c8fcb63be..fc0a25d1f1 100644 --- a/arch/arm/src/lpc43xx/lpc43_i2c.c +++ b/arch/arm/src/lpc43xx/lpc43_i2c.c @@ -463,7 +463,7 @@ struct i2c_master_s *lpc43_i2cbus_initialize(int port) { priv = &g_i2c0dev; priv->base = LPC43_I2C0_BASE; - priv->irqid = LPC43M0_IRQ_I2C0; + priv->irqid = LPC43M4_IRQ_I2C0; priv->baseFreq = BOARD_ABP1_FREQUENCY; /* Enable, set mode */ @@ -496,7 +496,7 @@ struct i2c_master_s *lpc43_i2cbus_initialize(int port) { priv = &g_i2c1dev; priv->base = LPC43_I2C1_BASE; - priv->irqid = LPC43M0_IRQ_I2C1; + priv->irqid = LPC43M4_IRQ_I2C1; priv->baseFreq = BOARD_ABP3_FREQUENCY; /* No need to enable */