Skip to content

Commit

Permalink
lpi2c: MIMX9352: Add driver IRQ handlers for LPI2C7 and LPI2C8
Browse files Browse the repository at this point in the history
NXP is missing definitions of LPI2C_DriverIRQHandlers for LPI2C
instances 7 and 8. If 7 and 8 are used with functions such as the
transfer API, then the proper ISR will never be called and the
functionality fail. To fix this, simply add the additional handler
definitions.

Signed-off-by: Ken Sloat <[email protected]>
  • Loading branch information
Ken Sloat authored and morishitaandre committed Jun 26, 2024
1 parent 3fd9047 commit e20e103
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions devices/MIMX9352/drivers/fsl_lpi2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -2584,6 +2584,24 @@ void LPI2C6_DriverIRQHandler(void)
}
#endif

#if defined(LPI2C7)
/* Implementation of LPI2C7 handler named in startup code. */
void LPI2C7_DriverIRQHandler(void);
void LPI2C7_DriverIRQHandler(void)
{
LPI2C_CommonIRQHandler(LPI2C7, 7U);
}
#endif

#if defined(LPI2C8)
/* Implementation of LPI2C8 handler named in startup code. */
void LPI2C8_DriverIRQHandler(void);
void LPI2C8_DriverIRQHandler(void)
{
LPI2C_CommonIRQHandler(LPI2C8, 8U);
}
#endif

#if defined(CM4_0__LPI2C)
/* Implementation of CM4_0__LPI2C handler named in startup code. */
void M4_0_LPI2C_DriverIRQHandler(void);
Expand Down

0 comments on commit e20e103

Please sign in to comment.