if (LPUART_GetIntMode(base, LPUART_INT_IDLE_LINE))
{
if (LPUART_GetStatusFlag(base, LPUART_IDLE_LINE_DETECT))
{
LPUART_DRV_RxIdleLineIrqHandler(instance);
}
}
IDLE int is ok,but Idle line flag is not be set.
Hello
IDLE is set when the LPUART receive line becomes idle for a full character time after a period of activity. After IDLE has been cleared, it cannot be set again until after
a new character has been stored in the receive buffer. I suggest you put a small delay before reading the flag.
If you want to clear the flag I suggest you use the function LPUART_ClearStatusFlag.
Let me know if this is helpful, if you have more questions do not hesitate to ask me.
Best regards,
Omar