2024-02-29 22:27:27 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
group = []
|
|
|
|
|
|
|
|
if not GetDepend(['RT_USING_PIN']):
|
|
|
|
Return('group')
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
|
2024-08-24 06:15:09 +08:00
|
|
|
src = ['dev_pin.c']
|
2024-02-29 22:27:27 +08:00
|
|
|
|
|
|
|
if GetDepend(['RT_USING_DM']):
|
2024-08-24 06:15:09 +08:00
|
|
|
src += ['dev_pin_dm.c']
|
2024-02-29 22:27:27 +08:00
|
|
|
|
|
|
|
if GetDepend(['RT_USING_OFW']):
|
2024-08-24 06:15:09 +08:00
|
|
|
src += ['dev_pin_ofw.c']
|
2024-02-29 22:27:27 +08:00
|
|
|
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|