Browse Source

将 slider 和 slider demo 宏分离

张康 2 years ago
parent
commit
7aaf5babb3

+ 1 - 1
bsp/Infineon/libraries/templates/PSOC62/board/SConscript

@@ -19,7 +19,7 @@ if GetDepend(['BSP_USING_SPI3_SAMPLE']):
 if GetDepend(['BSP_USING_RW007']):
 if GetDepend(['BSP_USING_RW007']):
     src += Glob('ports/drv_rw007.c')
     src += Glob('ports/drv_rw007.c')
 
 
-if GetDepend(['BSP_USING_SLIDER']):
+if GetDepend(['BSP_USING_SLIDER_SAMPLE']):
     src += Glob('ports/slider_sample.c')
     src += Glob('ports/slider_sample.c')
 
 
 path = [cwd]
 path = [cwd]

+ 1 - 1
bsp/Infineon/psoc6-cy8ckit-062-BLE/board/SConscript

@@ -19,7 +19,7 @@ if GetDepend(['BSP_USING_SPI3_SAMPLE']):
 if GetDepend(['BSP_USING_RW007']):
 if GetDepend(['BSP_USING_RW007']):
     src += Glob('ports/drv_rw007.c')
     src += Glob('ports/drv_rw007.c')
 
 
-if GetDepend(['BSP_USING_SLIDER']):
+if GetDepend(['BSP_USING_SLIDER_SAMPLE']):
     src += Glob('ports/slider_sample.c')
     src += Glob('ports/slider_sample.c')
 
 
 path = [cwd]
 path = [cwd]

+ 1 - 1
bsp/Infineon/psoc6-cy8ckit-062-WIFI-BT/board/SConscript

@@ -19,7 +19,7 @@ if GetDepend(['BSP_USING_SPI3_SAMPLE']):
 if GetDepend(['BSP_USING_RW007']):
 if GetDepend(['BSP_USING_RW007']):
     src += Glob('ports/drv_rw007.c')
     src += Glob('ports/drv_rw007.c')
 
 
-if GetDepend(['BSP_USING_SLIDER']):
+if GetDepend(['BSP_USING_SLIDER_SAMPLE']):
     src += Glob('ports/slider_sample.c')
     src += Glob('ports/slider_sample.c')
 
 
 path = [cwd]
 path = [cwd]

+ 10 - 5
bsp/Infineon/psoc6-cy8ckit-062S2-43012/board/Kconfig

@@ -265,12 +265,17 @@ endmenu
 menu "Board extended module Drivers"
 menu "Board extended module Drivers"
 
 
     config BSP_USING_SLIDER
     config BSP_USING_SLIDER
-        bool "Enable Slider Demo"
-        select BSP_USING_PWM
-        select BSP_USING_PWM0
-        select BSP_USING_PWM0_CH3
-        select BSP_USING_PWM0_PORT13
+        bool "Enable Slider"
         default n
         default n
+    if BSP_USING_SLIDER
+        config BSP_USING_SLIDER_SAMPLE
+            bool "Enable Slider Demo"
+            select BSP_USING_PWM
+            select BSP_USING_PWM0
+            select BSP_USING_PWM0_CH3
+            select BSP_USING_PWM0_PORT13
+            default n
+    endif
 
 
         menuconfig BSP_USING_RW007
         menuconfig BSP_USING_RW007
             bool "Enable RW007"
             bool "Enable RW007"

+ 1 - 1
bsp/Infineon/psoc6-cy8ckit-062S2-43012/board/SConscript

@@ -19,7 +19,7 @@ if GetDepend(['BSP_USING_SPI3_SAMPLE']):
 if GetDepend(['BSP_USING_RW007']):
 if GetDepend(['BSP_USING_RW007']):
     src += Glob('ports/drv_rw007.c')
     src += Glob('ports/drv_rw007.c')
 
 
-if GetDepend(['BSP_USING_SLIDER']):
+if GetDepend(['BSP_USING_SLIDER_SAMPLE']):
     src += Glob('ports/slider_sample.c')
     src += Glob('ports/slider_sample.c')
 
 
 path = [cwd]
 path = [cwd]

+ 10 - 5
bsp/Infineon/psoc6-cy8cproto-062S3-4343W/board/Kconfig

@@ -265,12 +265,17 @@ endmenu
 menu "Board extended module Drivers"
 menu "Board extended module Drivers"
 
 
     config BSP_USING_SLIDER
     config BSP_USING_SLIDER
-        bool "Enable Slider Demo"
-        select BSP_USING_PWM
-        select BSP_USING_PWM0
-        select BSP_USING_PWM0_CH3
-        select BSP_USING_PWM0_PORT13
+        bool "Enable Slider"
         default n
         default n
+    if BSP_USING_SLIDER
+        config BSP_USING_SLIDER_SAMPLE
+            bool "Enable Slider Demo"
+            select BSP_USING_PWM
+            select BSP_USING_PWM0
+            select BSP_USING_PWM0_CH3
+            select BSP_USING_PWM0_PORT13
+            default n
+    endif
 
 
         menuconfig BSP_USING_RW007
         menuconfig BSP_USING_RW007
             bool "Enable RW007"
             bool "Enable RW007"

+ 1 - 1
bsp/Infineon/psoc6-cy8cproto-062S3-4343W/board/SConscript

@@ -19,7 +19,7 @@ if GetDepend(['BSP_USING_SPI3_SAMPLE']):
 if GetDepend(['BSP_USING_RW007']):
 if GetDepend(['BSP_USING_RW007']):
     src += Glob('ports/drv_rw007.c')
     src += Glob('ports/drv_rw007.c')
 
 
-if GetDepend(['BSP_USING_SLIDER']):
+if GetDepend(['BSP_USING_SLIDER_SAMPLE']):
     src += Glob('ports/slider_sample.c')
     src += Glob('ports/slider_sample.c')
 
 
 path = [cwd]
 path = [cwd]

+ 10 - 5
bsp/Infineon/psoc6-evaluationkit-062S2/board/Kconfig

@@ -282,12 +282,17 @@ endmenu
 menu "Board extended module Drivers"
 menu "Board extended module Drivers"
 
 
     config BSP_USING_SLIDER
     config BSP_USING_SLIDER
-        bool "Enable Slider Demo"
-        select BSP_USING_PWM
-        select BSP_USING_PWM0
-        select BSP_USING_PWM0_CH0
-        select BSP_USING_PWM0_PORT0
+        bool "Enable Slider"
         default n
         default n
+    if BSP_USING_SLIDER
+        config BSP_USING_SLIDER_SAMPLE
+            bool "Enable Slider Demo"
+            select BSP_USING_PWM
+            select BSP_USING_PWM0
+            select BSP_USING_PWM0_CH0
+            select BSP_USING_PWM0_PORT0
+            default n
+    endif
 
 
         menuconfig BSP_USING_RW007
         menuconfig BSP_USING_RW007
             bool "Enable RW007"
             bool "Enable RW007"

+ 1 - 1
bsp/Infineon/psoc6-evaluationkit-062S2/board/SConscript

@@ -19,7 +19,7 @@ if GetDepend(['BSP_USING_SPI3_SAMPLE']):
 if GetDepend(['BSP_USING_RW007']):
 if GetDepend(['BSP_USING_RW007']):
     src += Glob('ports/drv_rw007.c')
     src += Glob('ports/drv_rw007.c')
 
 
-if GetDepend(['BSP_USING_SLIDER']):
+if GetDepend(['BSP_USING_SLIDER_SAMPLE']):
     src += Glob('ports/slider_sample.c')
     src += Glob('ports/slider_sample.c')
 
 
 path = [cwd]
 path = [cwd]