Added ISR to spi functions.