/* Enter FlexCAN Freeze Mode. 
This function makes the FlexCAN work under Freeze Mode. */
static void FLEXCAN_EnterFreezeMode(CAN_Type *base)
/* Enter FlexCAN Freeze Mode. 
This function makes the FlexCAN work under Freeze Mode. */
static void FLEXCAN_EnterFreezeMode(CAN_Type *base)
{
    base->MCR |= CAN_MCR_HALT_MASK;
    while (!(base->MCR & CAN_MCR_FRZACK_MASK))
    {
    }
}