Update SPI function.c