diff options
Diffstat (limited to 'bsp/ra6m4-cpk/drivers/SConscript')
| -rw-r--r-- | bsp/ra6m4-cpk/drivers/SConscript | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bsp/ra6m4-cpk/drivers/SConscript b/bsp/ra6m4-cpk/drivers/SConscript new file mode 100644 index 0000000000..1d3cf5a283 --- /dev/null +++ b/bsp/ra6m4-cpk/drivers/SConscript @@ -0,0 +1,24 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() + +# add the general drivers. +src = Split(""" + drv_common.c +""") + +if GetDepend(['RT_USING_SERIAL']): + if GetDepend(['RT_USING_SERIAL_V2']): + src += ['drv_usart_v2.c'] + else: + print("\nThe current project does not support serial-v1\n") + Return('group') + +path = [cwd] +path += [cwd + '/config'] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) + +Return('group') |
