use correct macro for irqid (fortunately both point to LPC43_IRQ_EXTINT+18)

This commit is contained in:
ahb 2017-03-09 11:29:01 +01:00
parent f50072bd6b
commit 0dee37ffb3

View File

@ -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 */