added hardware SPI support.