소스 검색

[nuvoton] Fix ordering and configuration.

1. Update module starting ordering.
2. Fix QSPI PDMA configuration.
Wayne Lin 4 년 전
부모
커밋
5af9085966

+ 1 - 1
bsp/nuvoton/libraries/m2354/rtt_port/drv_softi2c.c

@@ -212,6 +212,6 @@ int rt_soft_i2c_init(void)
 
     return 0;
 }
-INIT_BOARD_EXPORT(rt_soft_i2c_init);
+INIT_DEVICE_EXPORT(rt_soft_i2c_init);
 
 #endif //#if (defined(BSP_USING_SOFT_I2C) && defined(BSP_USING_GPIO) && defined(RT_USING_I2C_BITOPS) && defined(RT_USING_I2C) && defined(RT_USING_PIN))

+ 1 - 1
bsp/nuvoton/libraries/m480/rtt_port/drv_softi2c.c

@@ -212,6 +212,6 @@ int rt_soft_i2c_init(void)
 
     return 0;
 }
-INIT_BOARD_EXPORT(rt_soft_i2c_init);
+INIT_DEVICE_EXPORT(rt_soft_i2c_init);
 
 #endif //#if (defined(BSP_USING_SOFT_I2C) && defined(BSP_USING_GPIO) && defined(RT_USING_I2C_BITOPS) && defined(RT_USING_I2C) && defined(RT_USING_PIN))

+ 9 - 4
bsp/nuvoton/libraries/nuc980/rtt_port/Kconfig

@@ -472,12 +472,17 @@ config SOC_SERIES_NUC980
         select BSP_USING_SPI
 
         if BSP_USING_QSPI
-           config BSP_USING_QSPI0
-               bool "Enable QSPI0"
+            config BSP_USING_QSPI_PDMA
+            bool
+            select BSP_USING_SPI_PDMA
+            default n
+
+            config BSP_USING_QSPI0
+                bool "Enable QSPI0"
 
-           config BSP_USING_QSPI0_PDMA
+            config BSP_USING_QSPI0_PDMA
                 bool "Enable PDMA for QSPI0"
-                select BSP_USING_SPI_PDMA
+                select BSP_USING_QSPI_PDMA
                 depends on BSP_USING_QSPI0
         endif
 

+ 1 - 1
bsp/nuvoton/libraries/nuc980/rtt_port/drv_softi2c.c

@@ -224,6 +224,6 @@ int rt_soft_i2c_init(void)
 
     return 0;
 }
-INIT_BOARD_EXPORT(rt_soft_i2c_init);
+INIT_DEVICE_EXPORT(rt_soft_i2c_init);
 
 #endif //#if (defined(BSP_USING_SOFT_I2C) && defined(RT_USING_I2C_BITOPS) && defined(RT_USING_I2C) && defined(RT_USING_PIN))

+ 1 - 1
bsp/nuvoton/nk-980iot/applications/mnt.c

@@ -235,6 +235,6 @@ exit_mnt_init_spiflash0:
 
     return 0;
 }
-INIT_ENV_EXPORT(mnt_init_spiflash0);
+INIT_APP_EXPORT(mnt_init_spiflash0);
 #endif
 

+ 1 - 1
bsp/nuvoton/nk-rtu980/applications/mnt.c

@@ -232,6 +232,6 @@ exit_mnt_init_spiflash0:
 
     return 0;
 }
-INIT_ENV_EXPORT(mnt_init_spiflash0);
+INIT_APP_EXPORT(mnt_init_spiflash0);
 #endif