rt-thread-official/bsp/ESP32_C3/drivers/SConscript

36 lines
652 B
Python
Raw Permalink Normal View History

import os
from building import *
cwd = GetCurrentDir()
src = ['board.c']
CPPPATH = [cwd]
if GetDepend('BSP_USING_GPIO'):
src += ['drv_gpio.c']
if GetDepend('BSP_USING_UART'):
src += ['drv_uart.c']
if GetDepend('BSP_USING_ADC'):
src += ['drv_adc.c']
if GetDepend('BSP_USING_I2C'):
src += ['drv_hw_i2c.c']
if GetDepend('BSP_USING_PWM'):
src += ['drv_pwm.c']
if GetDepend('BSP_USING_HWTIMER'):
src += ['drv_hwtimer.c']
if GetDepend('BSP_USING_WIFI'):
src += ['drv_wifi.c']
2024-10-09 06:34:24 +08:00
if GetDepend('BSP_USING_SPI'):
src += ['drv_spi.c']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')