1、功能说明
    此例程展示对NORFLASH使用标准SPI和四线XSPI读和写方法。

2、使用环境

    软件开发环境：KEIL MDK-ARM V5.34
                  IAR EWARM 8.50.1 
    硬件开发环境：
        N32H787系列：
        基于评估板N32H787XKB7_EVB V1.1开发
        基于评估板N32H787_HMI_V1.1开发
        
    芯片支持：
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787
        
3、使用说明

    系统配置
        1、时钟源：HSI+PLL
        2、系统时钟频率：
            600MHz
        3、引脚：
            N32H787XKB7_EVB V1.1开发板引脚：
                XSPI_NSS1 : PK5   XSPI_CLK : PB2 
                XSPI_IO0 : PB1   XSPI_IO1 : PB0
                XSPI_IO2 : PI11  XSPI_IO3 : PA6
            N32H787_HMI_V1.1开发板引脚：
                XSPI_NSS1: PG12  XSPI_CLK : PB2 
                XSPI_IO0 : PF8   XSPI_IO1 : PB0
                XSPI_IO2 : PF7   XSPI_IO3 : PF6
            外部Spi_Flash设备：W25Q128                     
    使用方法：
        1、选择所需要的开发板宏，重新编译。
        2、通过对比写入和读出结果，打印正确即四线XSPI读写取正确。

4、注意事项
    无
    
1. Function description

    This routine demonstrates reading and writing methods for NOR FLASH using both standard SPI and quad-line XSPI interfaces.

2. Use environment

    Software development environment: KEIL MDK-ARM V5.34
                                      IAR EWARM 8.50.1 
    MCU support:
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787

      
                
3. Instructions for use

    System Configuration:
        1. Clock source: HSI+PLL
        2. System Clock frequency: 
            600MHz
        3.GPIO:
            N32H787 Series:
                Based on the evaluation board N32H787XKB7_EVB V1.1:
                    XSPI_NSS1 : PK5   XSPI_CLK : PB2 
                    XSPI_IO0 : PB1   XSPI_IO1 : PB0
                    XSPI_IO2 : PI11  XSPI_IO3 : PA6
                Based on the evaluation board N32H787_HMI_V1.1:
                    XSPI_NSS1: PG12  XSPI_CLK : PB2 
                    XSPI_IO0 : PF8   XSPI_IO1 : PB0
                    XSPI_IO2 : PF7   XSPI_IO3 : PF6
					
				External SPI Flash Device: W25Q128
     Instructions:
        1. Select the required development board macro and recompile the code.
        2. By comparing the written and read results, if it prints correctly, then the quad XSPI read/write operation is successful.

4. Attention
    None

