I currently have an application that buffers signals by recording with an ADC on an interrupt and then retransmits the data using an external DAC through SPI. When I call any SPI functions such as spi_write from anywhere outside of an ISR it works as expected and successfully transmits the data. When spi_write is called during the execution of an ISR it always results in an error code of 116 which implies the SPI writing is timing out. Is there something that I am missing about using SPI in interrupts? If this is not a simple fix and I need to provide code just let me know.