Altera_Forum
Honored Contributor
15 years agoInterrupt-driven SPI?
Hi.
I'm using uC/OS-II (version 2.77) on Nios II platform using Quartus 6.0, Service Pack 1. The SPI included provides a HAL interface that is pretty much limited to the alt_avalon_spi_command() function. This function does not give up control so other processes can run while waiting for transfers to complete. I have attempted to use the IRQ given to the SPI Bus device in system.h, but the interrupt never seems to fire even though data is being transferred. Do I have to do something other than the following? alt_irq_register( SPI_BUS_IF_IRQ, (void *)NULL, handle_spi_interrupts ); Thanks, Bob.