/* This handler is only enabled if the user passes in a valid IRQ number in Pointer to a configuration structure. structure.  */
void sci_spi_eri_isr(void)
/* This handler is only enabled if the user passes in a valid IRQ number in Pointer to a configuration structure. structure.  */
void sci_spi_eri_isr(void)
{
    FSP_CONTEXT_SAVE;
    IRQn_Type                 irq    = R_FSP_CurrentIrqGet();
    sci_spi_instance_ctrl_t * p_ctrl = (sci_spi_instance_ctrl_t *) R_FSP_IsrContextGet(irq);
    p_ctrl->p_reg->SCR &= (uint8_t) R_SCI0_SCR_CKE_Msk;
    p_ctrl->p_reg->SSR;
    p_ctrl->p_reg->SSR = (uint8_t) (R_SCI0_SSR_TDRE_Msk | R_SCI0_SSR_TEND_Msk);
    r_sci_spi_call_callback(p_ctrl, SPI_EVENT_ERR_READ_OVERFLOW);
    R_BSP_IrqStatusClear(irq);
    FSP_CONTEXT_RESTORE;
}