将 slider 和 slider demo 宏分离
This commit is contained in:
parent
65a2a811ed
commit
7aaf5babb3
@ -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]
|
||||||
|
@ -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]
|
||||||
|
@ -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]
|
||||||
|
@ -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"
|
||||||
|
default n
|
||||||
|
if BSP_USING_SLIDER
|
||||||
|
config BSP_USING_SLIDER_SAMPLE
|
||||||
bool "Enable Slider Demo"
|
bool "Enable Slider Demo"
|
||||||
select BSP_USING_PWM
|
select BSP_USING_PWM
|
||||||
select BSP_USING_PWM0
|
select BSP_USING_PWM0
|
||||||
select BSP_USING_PWM0_CH3
|
select BSP_USING_PWM0_CH3
|
||||||
select BSP_USING_PWM0_PORT13
|
select BSP_USING_PWM0_PORT13
|
||||||
default n
|
default n
|
||||||
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_RW007
|
menuconfig BSP_USING_RW007
|
||||||
bool "Enable RW007"
|
bool "Enable RW007"
|
||||||
|
@ -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]
|
||||||
|
@ -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"
|
||||||
|
default n
|
||||||
|
if BSP_USING_SLIDER
|
||||||
|
config BSP_USING_SLIDER_SAMPLE
|
||||||
bool "Enable Slider Demo"
|
bool "Enable Slider Demo"
|
||||||
select BSP_USING_PWM
|
select BSP_USING_PWM
|
||||||
select BSP_USING_PWM0
|
select BSP_USING_PWM0
|
||||||
select BSP_USING_PWM0_CH3
|
select BSP_USING_PWM0_CH3
|
||||||
select BSP_USING_PWM0_PORT13
|
select BSP_USING_PWM0_PORT13
|
||||||
default n
|
default n
|
||||||
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_RW007
|
menuconfig BSP_USING_RW007
|
||||||
bool "Enable RW007"
|
bool "Enable RW007"
|
||||||
|
@ -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]
|
||||||
|
@ -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"
|
||||||
|
default n
|
||||||
|
if BSP_USING_SLIDER
|
||||||
|
config BSP_USING_SLIDER_SAMPLE
|
||||||
bool "Enable Slider Demo"
|
bool "Enable Slider Demo"
|
||||||
select BSP_USING_PWM
|
select BSP_USING_PWM
|
||||||
select BSP_USING_PWM0
|
select BSP_USING_PWM0
|
||||||
select BSP_USING_PWM0_CH0
|
select BSP_USING_PWM0_CH0
|
||||||
select BSP_USING_PWM0_PORT0
|
select BSP_USING_PWM0_PORT0
|
||||||
default n
|
default n
|
||||||
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_RW007
|
menuconfig BSP_USING_RW007
|
||||||
bool "Enable RW007"
|
bool "Enable RW007"
|
||||||
|
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user