The spi_interrupt example shows how to communicate with mx25r flash using spi polling functional API.