2024-01-28 16:05:52 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2024-01-29 09:13:21 +08:00
|
|
|
src = ['drv_uart.c']
|
2024-01-28 16:05:52 +08:00
|
|
|
CPPDEFINES = []
|
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2024-01-29 09:13:21 +08:00
|
|
|
if GetDepend('BSP_USING_CV1800B') or GetDepend('BSP_USING_C906_LITTLE'):
|
2024-01-28 16:05:52 +08:00
|
|
|
CPPPATH += [cwd + r'/cv1800b']
|
|
|
|
|
2024-01-29 09:13:21 +08:00
|
|
|
if GetDepend('BSP_USING_CV1800B'):
|
|
|
|
src += ['drv_gpio.c']
|
|
|
|
|
2024-01-28 16:05:52 +08:00
|
|
|
CPPDEFINES += ['-DCONFIG_64BIT']
|
|
|
|
|
|
|
|
group = DefineGroup('drivers', src, depend = [''], CPPDEFINES = CPPDEFINES, CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|