Added SPI A initialization function.