/* Checks whether the specified LPUART interrupt has occurred or not.  */
INTStatus LPUART_GetIntStatus(uint16_t LPUART_INT)
/* Checks whether the specified LPUART interrupt has occurred or not.  */
INTStatus LPUART_GetIntStatus(uint16_t LPUART_INT)
{
    uint32_t bitpos = 0x00, itmask = 0x00;
    INTStatus bitstatus = RESET;
    assert_param(IS_LPUART_GET_INT(LPUART_INT));
    itmask = (uint8_t)(LPUART_INT >> 0x08) & INT_MASK;
    itmask = (uint32_t)0x01 << itmask;
    itmask &= LPUART->INTEN;
    bitpos = ((uint8_t)LPUART_INT) & 0xFF;
    if (LPUART_INT_WUF == LPUART_INT){
        bitpos = (bitpos << 0x01);
    }
    bitpos &= LPUART->STS;
    if ((itmask != (uint16_t)RESET) && (bitpos != (uint16_t)RESET))
    {
        bitstatus = SET;
    }
    else
    {
        bitstatus = RESET;
    }
    return bitstatus;
}