1、功能说明
     1.SPI收发数据进行CRC校验
2、使用环境
     软件开发环境：KEIL MDK-ARM V5.34.0.0
                   IAR EWARM V8.50.1
     硬件环境：基于N32G401C8L7-STB V1.0开发
3、使用说明
     /* 描述相关模块配置方法； 例如：时钟、I/O等 */
     1.系统时钟：72MHz
     2.GPIO：SPI1: NSS--PA4  <--> SPI2: NSS--PB12
             SPI1：SCK--PA5  <--> SPI2：SCK--PB13
             SPI1: MISO--PA6 <--> SPI2: MISO--PB14
             SPI1: MOSI--PA7 <--> SPI2: MOSI--PB15
     /* 描述Demo的测试步骤和现象 */
     1、编译完成后，下载程序复位运行；
     2、SPI1和SPI2同时发送和接收数据，传输完成后，发送CRC数据，校验数据和CRC值，
        检查TransferStatus1和TransferStatus2的状态是否为PASSED，然后检查CRC值；
4、注意事项
     如果CLKPOL设置为HIGH，设置SPI_SCK GPIO需要设置为上拉GPIO_PULL_UP，其他情况设置为下拉GPIO_PULL_DOWN


1. Function description
    1. SPI sends and receives data for CRC check
2. Use environment
    Software development environment: KEIL MDK-ARM V5.34.0.0
    Hardware environment: Developed based on the evaluation board N32G401C8L7-STB V1.0
3. Instructions for use
    /* Describe related module configuration methods; for example: clock, I/O, etc. */
    1. SystemClock: 72MHz
    2、GPIO：SPI1: NSS--PA4  <--> SPI2: NSS--PB12 
             SPI1: SCK--PA5  <--> SPI2: SCK--PB13
             SPI1: MISO--PA6 <--> SPI2: MISO--PB14
             SPI1: MOSI--PA7 <--> SPI2: MOSI--PB15      
    /* Describe the test steps and phenomena of the Demo */
    1. After compiling, download the program to reset and run;
    2. SPI1 and SPI2 send and receive data at the same time. 
       After the transmission is completed, send the CRC data, check the data and CRC value, 
       check that the status of TransferStatus1 and TransferStatus2 is PASSED, and then check the CRC value;
4. Matters needing attention
    If CLKPOL is HIGH, set SPI_SCK GPIO to GPIO_PULL_UP, otherwise set to GPIO_PULL_DOWN