将 slider 和 slider demo 宏分离

This commit is contained in:
张康 2023-05-08 15:00:41 +08:00 committed by guo
parent 65a2a811ed
commit 7aaf5babb3
9 changed files with 36 additions and 21 deletions

View File

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

View File

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

View File

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

View File

@ -265,12 +265,17 @@ endmenu
menu "Board extended module Drivers"
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
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
bool "Enable RW007"

View File

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

View File

@ -265,12 +265,17 @@ endmenu
menu "Board extended module Drivers"
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
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
bool "Enable RW007"

View File

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

View File

@ -282,12 +282,17 @@ endmenu
menu "Board extended module Drivers"
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
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
bool "Enable RW007"

View File

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