summaryrefslogtreecommitdiff
path: root/bsp/renesas/ra6w1-ek/ra/SConscript
blob: baec95f214a7779ebe7f9245102cd0079e0dc83c (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
50
51
52
53
54
55
56
57
Import("RTT_ROOT")
Import("rtconfig")
from building import *

cwd = GetCurrentDir()
src = []

CPPPATH = [cwd + "/arm/CMSIS_6/CMSIS/Core/Include",
        cwd + "/fsp/inc",
        cwd + "/fsp/inc/api",
        cwd + "/fsp/inc/instances",
        cwd + "/fsp/src/bsp/cmsis/Device/RENESAS/Include",
        cwd + "/fsp/src/bsp/mcu/all",
        cwd + "/fsp/src/bsp_w/cmsis/Device/RENESAS/Include",
        cwd + "/fsp/src/bsp_w/mcu/all",
        cwd + "/fsp/src/bsp_w/mcu/ra6w1",
        cwd + "/fsp/src/bsp_w/mcu/ra6w1/config",
        cwd + "/fsp/src/bsp_w/mcu/ra6w1/config/include",
]

src += Glob("./board/rrq61xxx_evb/*.c")
src += Glob("./fsp/src/bsp_w/cmsis/Device/RENESAS/Source/*.c")
src += Glob("./fsp/src/bsp_w/mcu/all/*.c")
src += Glob("./fsp/src/bsp_w/mcu/all/*.S")
src += Glob("./fsp/src/bsp_w/mcu/ra6w1/*.c")

src += Glob("./fsp/src/r_gpio_w/*.c")
src += Glob("./fsp/src/r_uart_w/*.c")
src += Glob("./fsp/src/r_ext_irq_w/*.c")
src += Glob("./fsp/src/r_dmac_w/*.c")

if GetDepend(["BSP_USING_ONCHIP_RTC"]):
    src += Glob("./fsp/src/r_rtc_w/*.c")

if GetDepend(["BSP_USING_SPI"]):
    src += Glob("./fsp/src/r_spi_w/*.c")

if GetDepend(["BSP_USING_ADC"]):
    src += Glob("./fsp/src/r_adc_w/*.c")

if GetDepend(["BSP_USING_TIM_W"]):
    src += Glob("./fsp/src/r_tim_w/*.c")

if GetDepend(["BSP_USING_WDT"]):
    src += Glob("./fsp/src/r_wdog_w/*.c")

if GetDepend(["BSP_USING_QSPI"]):
    src += Glob("./fsp/src/r_qspi_w/*.c")

if GetDepend(["BSP_USING_HW_I2C"]):
    src += Glob("./fsp/src/r_i2c_master_w/*.c")

if GetDepend(["BSP_USING_OSPI_FLASH"]):
    src += Glob("./fsp/src/r_ospi_w/*.c")

group = DefineGroup("ra", src, depend = [""], CPPPATH = CPPPATH)
Return("group")