summaryrefslogtreecommitdiff
path: root/bsp/nxp/lpc/lpc408x/drivers/SConscript
blob: 6557de9c16a08aa9375e27608c61b4fb206b7efb (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
from building import *

cwd = GetCurrentDir()
CPPPATH = [cwd]

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

if GetDepend(['BSP_USING_EMAC']):
    src += ['drv_emac.c']

if GetDepend(['BSP_USING_HWTIMER0']):
    src += ['drv_hwtimer.c']

if GetDepend(['BSP_USING_LED']):
    src += ['drv_led.c']

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

if GetDepend('BSP_USING_UART0') or GetDepend('BSP_USING_UART2'):
    src += ['drv_uart.c']

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

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

Return('group')