summaryrefslogtreecommitdiff
path: root/bsp/stm32f429-disco/drivers/SConscript
blob: 3b595f8a5f113bf041e7a8aeed33ce8b185492b2 (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
Import('RTT_ROOT')
Import('rtconfig')
from building import *

cwd = GetCurrentDir()

# add the general drivers.
src = Split("""
board.c
stm32f4xx_it.c
usart.c
""")

if GetDepend(['RT_USING_EXT_SDRAM']):
    src += ['drv_sdram.c']

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

if GetDepend(['RT_USING_ILI9341_LCD']):
    src += ['drv_lcd.c']

if GetDepend(['RT_USING_STMPE811_TOUCH']):
    src += ['drv_touch.c']

CPPPATH = [cwd]

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

Return('group')