1、功能说明
    此例程展示了SDMMC对eMMC设备的访问操作。

2、使用环境
    软件开发环境：KEIL MDK-ARM V5.34
                 IAR EWARM 8.50.1

    芯片支持：
        N32H730  
        N32H735   
        N32H735EC
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787
          
    KLM4G1FETE-B041
    
3、使用说明

    系统配置
        1、时钟源：HSI+PLL
        2、系统时钟频率：600MHz
        3、打印：PA9 - baud rate 115200
        4、SDMMC配置:
            时钟源：100MHz
            
            SDMMC1 IO配置：
            D0   -->   PC8 
            D1   -->   PC9  
            D2   -->   PC10  
            D3   -->   PC11
            D4   -->   PD14 
            D5   -->   PD15  
            D6   -->   PB6  
            D7   -->   PB7
            CLK   -->  PC12 
            CLKIN -->  PB8
            CMD   -->  PD2
            RST   -->  PD3
            LEDCTRL -->  PE8
            
            SDMMC2 IO配置：
            D0   -->   PG9 
            D1   -->   PG10  
            D2   -->   PG11  
            D3   -->   PG12
            D4   -->   PB8 
            D5   -->   PB9  
            D6   -->   PC6  
            D7   -->   PC7
            CLK   -->  PC4 
            CLKIN -->  PC1
            CMD   -->  PA0
            RST   -->  PG15
            LEDCTRL -->  PE9
            
            mode: HighSpeed
            busClock；50MHz
            busWidth: 8bit
            DMA: ADMA
            SD卡工作电压：3.3V

    使用方法：
        1、编译后将程序下载到开发板并复位运行。
        2、查看打印信息，全PASS表示测试OK，有Error打印信息表示测试失败。

4、注意事项
    1.Board_MMC_config函数中参数用来配置SD卡的工作模式，可以由用户自行配置
    
1. Function description

     This routine demonstrates the access operation of SDMMC to eMMC device.

2. Development environment

    Software development environment: KEIL MDK-ARM V5.34
                                      IAR EWARM 8.50.1

    Supported chips:
        N32H730  
        N32H735   
        N32H735EC
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787
     KLM4G1FETE-B041

3. How to use

    System Configuration:
        1. Clock source: HSI+PLL
        2. System Clock frequency: 
            600MHz
        3. printf: PA9 - baud rate 115200
        4. SDMMC configuration:
            Clock source: 100MHz
            SDMMC1 IO configuration:
            D0   -->   PC8 
            D1   -->   PC9  
            D2   -->   PC10  
            D3   -->   PC11
            D4   -->   PD14 
            D5   -->   PD15  
            D6   -->   PB6  
            D7   -->   PB7
            CLK   -->  PC12 
            CLKIN -->  PB8
            CMD   -->  PD2
            RST   -->  PD3
            LEDCTRL -->  PE8
            
            SDMMC2 IO configuration:
            D0   -->   PG9 
            D1   -->   PG10  
            D2   -->   PG11  
            D3   -->   PG12
            D4   -->   PB8 
            D5   -->   PB9  
            D6   -->   PC6  
            D7   -->   PC7
            CLK   -->  PC4 
            CLKIN -->  PC1
            CMD   -->  PA0
            RST   -->  PG15
            LEDCTRL -->  PE9
            
            mode: HighSpeed
            busClock；50MHz
            busWidth: 8bit
            DMA: ADMA
            SD card working voltage：3.3V
            
     Instructions:
        1. After compilation, download the program to the development board and reset it to run.
        2. Check the print information. A full PASS indicates a successful test, 
        while an Error print indicates a failed test.

4. Attention
    1. The parameters in the Board_MMC_config function are used to configure 
    the working mode of the SD card, which can be configured by the user themselves.

