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..
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
libopencm3-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel