/* Function called in case of error detected in USART IT Handler.  */
void Error_Callback(void)
/* Function called in case of error detected in USART IT Handler.  */
void Error_Callback(void)
{
  __IO uint32_t sr_reg;
  NVIC_DisableIRQ(USARTx_IRQn);
  sr_reg = LL_USART_ReadReg(USARTx_INSTANCE, SR);
  if (sr_reg & LL_USART_SR_NE)
  {
    LED_Blinking(LED_BLINK_FAST);
  }
  else
  {
    LED_Blinking(LED_BLINK_ERROR);
  }
}