CYFS 3 дней назад
Родитель
Сommit
c374aa2b19

+ 8 - 2
bsp/nxp/mcx/mcxa/frdm-mcxa346/.ci/attachconfig/ci.attachconfig.yml

@@ -5,5 +5,11 @@ scons.args: &scons
 # ------ component CI ------
 # ------ component CI ------
 component.can:
 component.can:
     kconfig:
     kconfig:
-      - CONFIG_BSP_USING_CAN
-      - CONFIG_BSP_USING_CAN0
+      - CONFIG_BSP_USING_CAN=y
+      - CONFIG_BSP_USING_CAN0=y
+
+# ------ Peripheral CI ------
+Peripheral.arduino:
+    kconfig:
+      - CONFIG_BSP_USING_ARDUINO=y
+

+ 0 - 14
bsp/nxp/mcx/mcxa/frdm-mcxa346/.cl/attachconfig/RTduino.attach

@@ -1,14 +0,0 @@
-CONFIG_PKG_USING_RTDUINO=y
-CONFIG_PKG_RTDUINO_PATH="/packages/arduino/RTduino"
-CONFIG_RTDUINO_THREAD_SIZE=2048
-CONFIG_RTDUINO_THREAD_PRIO=30
-CONFIG_RTDUINO_SUPPORT_HIGH_PRECISION_MICROS=y
-CONFIG_PKG_USING_RTDUINO_LATEST_VERSION=y
-CONFIG_PKG_RTDUINO_VER="latest"
-CONFIG_BSP_USING_I2C=y
-CONFIG_BSP_USING_I2C3=y
-CONFIG_BSP_USING_SPI=y
-CONFIG_BSP_USING_SPI1=y
-CONFIG_BSP_USING_ADC=y
-CONFIG_BSP_USING_PWM=y
-CONFIG_BSP_USING_ARDUINO=y

+ 76 - 83
bsp/nxp/mcx/mcxa/frdm-mcxa346/board/Kconfig

@@ -20,55 +20,51 @@ menu "On-chip Peripheral Drivers"
         default y
         default y
 
 
     menuconfig BSP_USING_UART
     menuconfig BSP_USING_UART
-        config BSP_USING_UART
-            bool "Enable UART"
-            select RT_USING_UART
-            default y
+        bool "Enable UART"
+        select RT_USING_UART
+        default y
 
 
-            if BSP_USING_UART
-                config BSP_USING_UART2
-                    bool "Enable LPUART2 as defalt UART"
-                    default y
+        if BSP_USING_UART
+            config BSP_USING_UART2
+                bool "Enable LPUART2 as defalt UART"
+                default y
 
 
-            endif
+        endif
 
 
 
 
     menuconfig BSP_USING_I2C
     menuconfig BSP_USING_I2C
-        config BSP_USING_I2C
-            bool "Enable I2C"
-            select RT_USING_I2C
-            default y
+        bool "Enable I2C"
+        select RT_USING_I2C
+        default y
 
 
-            if BSP_USING_I2C
-                config BSP_USING_I2C3
-                    bool "Enable Flexcomm3 I2C"
-                    default y
-            endif
+        if BSP_USING_I2C
+            config BSP_USING_I2C3
+                bool "Enable Flexcomm3 I2C"
+                default y
+        endif
 
 
     menuconfig BSP_USING_SPI
     menuconfig BSP_USING_SPI
-        config BSP_USING_SPI
-            bool "Enable SPI"
-            select RT_USING_SPI
-            default y
+        bool "Enable SPI"
+        select RT_USING_SPI
+        default y
 
 
-            if BSP_USING_SPI
-                config BSP_USING_SPI1
-                    bool "Enable LPSPI1"
-                    default n
-            endif
+        if BSP_USING_SPI
+            config BSP_USING_SPI1
+                bool "Enable LPSPI1"
+                default n
+        endif
 
 
     menuconfig BSP_USING_ADC
     menuconfig BSP_USING_ADC
-        config BSP_USING_ADC
-            bool "Enable ADC Channel"
-            select RT_USING_ADC
-            default y
+        bool "Enable ADC Channel"
+        select RT_USING_ADC
+        default y
 
 
-            if BSP_USING_ADC
-                config BSP_USING_ADC0_CH22
-                    bool "Enable ADC0 Channel22"
-                    default n
+        if BSP_USING_ADC
+            config BSP_USING_ADC0_CH22
+                bool "Enable ADC0 Channel22"
+                default n
 
 
-            endif
+        endif
 
 
     config BSP_USING_RTC
     config BSP_USING_RTC
         bool "Enable RTC"
         bool "Enable RTC"
@@ -81,61 +77,58 @@ menu "On-chip Peripheral Drivers"
         default n
         default n
 
 
     menuconfig BSP_USING_HWTIMER
     menuconfig BSP_USING_HWTIMER
-        config BSP_USING_HWTIMER
-            bool "Enable Timer"
-            select RT_USING_HWTIMER
-            default y
+        bool "Enable Timer"
+        select RT_USING_HWTIMER
+        default y
 
 
-            if BSP_USING_HWTIMER
-                config BSP_USING_CTIMER0
-                    bool "Enable CIMER0"
-                    default y
+        if BSP_USING_HWTIMER
+            config BSP_USING_CTIMER0
+                bool "Enable CIMER0"
+                default y
 
 
-                config BSP_USING_CTIMER1
-                    bool "Enable CIMER1"
-                    default n
+            config BSP_USING_CTIMER1
+                bool "Enable CIMER1"
+                default n
 
 
-                config BSP_USING_CTIMER3
-                    bool "Enable CIMER3"
-                    default n
+            config BSP_USING_CTIMER3
+                bool "Enable CIMER3"
+                default n
 
 
-                config BSP_USING_CTIMER4
-                    bool "Enable CIMER4"
-                    default n
-            endif
+            config BSP_USING_CTIMER4
+                bool "Enable CIMER4"
+                default n
+        endif
 
 
     menuconfig BSP_USING_PWM
     menuconfig BSP_USING_PWM
-        config BSP_USING_PWM
-            bool "Enable PWM"
-            select RT_USING_PWM
-            default n
-
-            if BSP_USING_PWM
-                config BSP_USING_PWM0
-                    bool "Enable eFlex PWM0"
-                    default n
-                config BSP_USING_PWM1
-                    bool "Enable eFlex PWM1"
-                    default n
-                config BSP_USING_PWM2
-                    bool "Enable eFlex PWM2"
-                    default n
-            endif
+        bool "Enable PWM"
+        select RT_USING_PWM
+        default n
+
+        if BSP_USING_PWM
+            config BSP_USING_PWM0
+                bool "Enable eFlex PWM0"
+                default n
+            config BSP_USING_PWM1
+                bool "Enable eFlex PWM1"
+                default n
+            config BSP_USING_PWM2
+                bool "Enable eFlex PWM2"
+                default n
+        endif
 
 
     menuconfig BSP_USING_CAN
     menuconfig BSP_USING_CAN
-        config BSP_USING_CAN
-            bool "Enable CAN"
-            select RT_USING_CAN
-            default n
-            if BSP_USING_CAN
-                config BSP_USING_CAN0
-                    bool "Enable CAN0"
-                    default n
-                
-                config BSP_USING_CAN1
-                    bool "Enable CAN1"
-                    default n
-            endif
+        bool "Enable CAN"
+        select RT_USING_CAN
+        default n
+        if BSP_USING_CAN
+            config BSP_USING_CAN0
+                bool "Enable CAN0"
+                default n
+            
+            config BSP_USING_CAN1
+                bool "Enable CAN1"
+                default n
+        endif
 
 
 endmenu
 endmenu