Low level peripheral SPI library