Create SPI1 initialization function