Hi,
I'm working on some SPI driver for LCD display and it seems that there is no IRQ API for SPI interrupts.
I'm trying to setup interrupt when SPI TX buffer is empty and when I enable this interrupt everything hangs.
I read library docs and still it should work but it doesn't
Anyone care to look what is wrong ?
===================

/* SPI1 IRQ enable *?
    SPI_CR2(SPI1) |= SPI_CR2_TXEIE;
    nvic_enable_irq(NVIC_SPI1_IRQ);


​void spi1_isr(void)
{
    if ((SPI_SR(SPI1) & SPI_SR_TXE) == SPI_SR_TXE){
/* clear pending bit */
        SPI_SR(SPI1) &= ~SPI_SR_TXE;
        /* do somethning which isn't happening */

    }
}

=================

Best regards  and thanks in advance..