/* Enable Receive Buffer Full, Transmit Buffer Empty, and Error Interrupts in the NVIC. */
static void r_spi_nvic_config(spi_instance_ctrl_t *p_ctrl)
/* Enable Receive Buffer Full, Transmit Buffer Empty, and Error Interrupts in the NVIC. */
static void r_spi_nvic_config(spi_instance_ctrl_t *p_ctrl)
{
    R_BSP_IrqCfgEnable(p_ctrl->p_cfg->txi_irq, p_ctrl->p_cfg->txi_ipl, p_ctrl);
    R_BSP_IrqCfgEnable(p_ctrl->p_cfg->rxi_irq, p_ctrl->p_cfg->rxi_ipl, p_ctrl);
    R_BSP_IrqCfgEnable(p_ctrl->p_cfg->eri_irq, p_ctrl->p_cfg->eri_ipl, p_ctrl);
    R_BSP_IrqCfg(p_ctrl->p_cfg->tei_irq, p_ctrl->p_cfg->tei_ipl, p_ctrl);
}