Added SPI (Serial Peripheral Interface) functionality.