/* Wait message into message buffer in basic mode.  */
void CAN_WaitMsg(CAN_T *tCAN)
/* Wait message into message buffer in basic mode.  */
void CAN_WaitMsg(CAN_T *tCAN)
{
    tCAN->STATUS = 0x0ul;
    while (1)
    {
        if (tCAN->IF[1].MCON & CAN_IF_MCON_NEWDAT_Msk)
        {
            break;
        }
        else
        {
        }
        if (tCAN->STATUS & CAN_STATUS_RXOK_Msk)
        {
        }
        else
        {
        }
        if (tCAN->STATUS & CAN_STATUS_LEC_Msk)
        {
        }
        else
        {
        }
    }
}