Skip to content

Commit a774ea7

Browse files
committed
[DM][MISC] Make Kconfig(ADC/PWM) import for DM
Signed-off-by: GuEe-GUI <[email protected]>
1 parent 2fb53c8 commit a774ea7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

components/drivers/misc/Kconfig

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
config RT_USING_ADC
1+
menuconfig RT_USING_ADC
22
bool "Using ADC device drivers"
33
default n
44

5+
if RT_USING_DM && RT_USING_ADC
6+
osource "$(SOC_DM_ADC_DIR)/Kconfig"
7+
endif
8+
59
config RT_USING_DAC
610
bool "Using DAC device drivers"
711
default n
@@ -18,10 +22,14 @@ config RT_USING_RANDOM
1822
bool "Using RANDOM device drivers"
1923
default n
2024

21-
config RT_USING_PWM
25+
menuconfig RT_USING_PWM
2226
bool "Using PWM device drivers"
2327
default n
2428

29+
if RT_USING_DM && RT_USING_PWM
30+
osource "$(SOC_DM_PWM_DIR)/Kconfig"
31+
endif
32+
2533
config RT_USING_PULSE_ENCODER
2634
bool "Using PULSE ENCODER device drivers"
2735
default n

0 commit comments

Comments
 (0)