summaryrefslogtreecommitdiff
path: root/bsp/novosns/ns800/libraries/HAL_Drivers/drivers/SConscript
blob: dc649c1ce2bd04f2711276b8e349b6aafd884c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Import('RTT_ROOT')
Import('rtconfig')
from building import *
import os

cwd = GetCurrentDir()
src = []
path = [cwd, cwd + '/config']

if GetDepend('BSP_USING_GPIO'):
    src += ['drv_gpio.c']

if GetDepend('BSP_USING_UART'):
    src += ['drv_uart.c']

if GetDepend('BSP_USING_CAN'):
    src += ['drv_can.c']

if GetDepend('BSP_USING_ECAP'):
    src += ['drv_ecap.c']

if GetDepend('BSP_USING_ADC'):
    src += ['drv_adc.c']

if GetDepend('BSP_USING_TIM'):
    src += ['drv_timer.c']

if GetDepend('BSP_USING_SPI'):
    src += ['drv_spi.c']
if GetDepend('BSP_USING_QSPI'):   
    src += ['drv_qspi.c']

if GetDepend('BSP_USING_WDT'):
    src += ['drv_iwdg.c']
    if GetDepend('BSP_USING_WWDG'):
        src += ['drv_wwdg.c']

if GetDepend('BSP_USING_EPWM'):
    src += ['drv_epwm.c']

if GetDepend('BSP_USING_I2C'):
    src += ['drv_i2c.c']

if GetDepend('BSP_USING_RTC'):
    src += ['drv_rtc.c']

group = DefineGroup('HAL_Drivers', src, depend = [''], CPPPATH = path)

Return('group')