/* Initializes the SPI in master mode. 
Support and FAQ: visit  */
void spi_master_init(volatile void *spi)
/* Initializes the SPI in master mode. 
Support and FAQ: visit  */
void spi_master_init(volatile void *spi)
{
	sysclk_enable_module(POWER_RED_REG0, PRSPI_bm);
	spi_enable_master_mode(spi);
}