目录
1、初始化
2、数据传输
1、初始化
Perform the following procedure for initializing the SPI:
1. Reset the SPI by clearing the RESET bit in the SPI global control register 0 (SPIGCR0) to 0.
2. Take the SPI out of reset by setting SPIGCR0.RESET to 1.
3. Configure the SPI for master mode by configuring the CLKM