Răsfoiți Sursa

Merge pull request #16 from misonyo/master

增加宏索引
yqiu 7 ani în urmă
părinte
comite
77a2a733f1
1 a modificat fișierele cu 21 adăugiri și 0 ștergeri
  1. 21 0
      SConscript

+ 21 - 0
SConscript

@@ -6,12 +6,33 @@ include_path = [cwd]
 
 # add kernel samples.
 
+if GetDepend('PERIPHERAL_SAMPLES_USING_ADC'):
+    src += ['adc_vol_sample.c']
+
+if GetDepend('PERIPHERAL_SAMPLES_USING_HWTIMER'):
+    src += ['hwtimer_sample.c']
+
 if GetDepend('PERIPHERAL_SAMPLES_USING_I2C'):
     src += ['i2c_aht10_sample.c']
 
+if GetDepend('PERIPHERAL_SAMPLES_USING_IWDG'):
+    src += ['iwdg_sample.c']
+
+if GetDepend('PERIPHERAL_SAMPLES_USING_LED_BLINK'):
+    src += ['led_blink_sample.c']
+
 if GetDepend('PERIPHERAL_SAMPLES_USING_PIN'):
     src += Glob('pin_beep_sample.c')
 
+if GetDepend('PERIPHERAL_SAMPLES_USING_PWM'):
+    src += ['pwm_led_sample.c']
+
+if GetDepend('PERIPHERAL_SAMPLES_USING_RTC'):
+    src += ['rtc_sample.c']
+
+if GetDepend('PERIPHERAL_SAMPLES_USING_SD'):
+    src += ['sd_sample.c']
+
 if GetDepend('PERIPHERAL_SAMPLES_USING_SERIAL'):
     src += Glob('uart_sample.c')