Skip to content

Commit b34187b

Browse files
committed
增加宏索引
1 parent fa4c405 commit b34187b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

SConscript

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,33 @@ include_path = [cwd]
66

77
# add kernel samples.
88

9+
if GetDepend('PERIPHERAL_SAMPLES_USING_ADC'):
10+
src += ['adc_vol_sample.c']
11+
12+
if GetDepend('PERIPHERAL_SAMPLES_USING_HWTIMER'):
13+
src += ['hwtimer_sample.c']
14+
915
if GetDepend('PERIPHERAL_SAMPLES_USING_I2C'):
1016
src += ['i2c_aht10_sample.c']
1117

18+
if GetDepend('PERIPHERAL_SAMPLES_USING_IWDG'):
19+
src += ['iwdg_sample.c']
20+
21+
if GetDepend('PERIPHERAL_SAMPLES_USING_LED_BLINK'):
22+
src += ['led_blink_sample.c']
23+
1224
if GetDepend('PERIPHERAL_SAMPLES_USING_PIN'):
1325
src += Glob('pin_beep_sample.c')
1426

27+
if GetDepend('PERIPHERAL_SAMPLES_USING_PWM'):
28+
src += ['pwm_led_sample.c']
29+
30+
if GetDepend('PERIPHERAL_SAMPLES_USING_RTC'):
31+
src += ['rtc_sample.c']
32+
33+
if GetDepend('PERIPHERAL_SAMPLES_USING_SD'):
34+
src += ['sd_sample.c']
35+
1536
if GetDepend('PERIPHERAL_SAMPLES_USING_SERIAL'):
1637
src += Glob('uart_sample.c')
1738

0 commit comments

Comments
 (0)