Added spi.h interface for SPI.