summaryrefslogtreecommitdiff
path: root/components/drivers/pin/SConscript
blob: bdad84827f446ff6f3e4a10f273c8d9361134fed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from building import *

group = []

if not GetDepend(['RT_USING_PIN']):
    Return('group')

cwd = GetCurrentDir()
CPPPATH = [cwd + '/../include']

src = ['pin.c']

if GetDepend(['RT_USING_DM']):
    src += ['pin_dm.c']

if GetDepend(['RT_USING_OFW']):
    src += ['pin_ofw.c']

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

Return('group')