1.4.21.46 SERCOMx_SPI_Initialize Function

C

/* x = SERCOM instance number */

/* SPI master and slave mode */

void SERCOMx_SPI_Initialize (void);	

Summary

Initializes instance x of the SERCOM module in SPI master or slave mode.

Description

This function initializes instance x of SERCOM module in SPI master or slave mode. This function should be called before any other library function. The SERCOM module will be configured as per the MHC settings.

Precondition

MCC GUI should be configured with the right values

Parameters

None.

Returns

None.

Example

SERCOM0_SPI_Initialize();

Remarks

This function must be called once before any other SPI function is called