summaryrefslogtreecommitdiff
path: root/bsp/ra6m4-cpk/drivers/SConscript
diff options
context:
space:
mode:
authorSherman <[email protected]>2021-10-06 16:50:57 +0800
committerSherman <[email protected]>2021-10-11 16:26:39 +0800
commit047c9453f3e35984452165f4c9487508b2d64ab2 (patch)
treea85441a817ab81a1ce5912596fc603a23c2d7acd /bsp/ra6m4-cpk/drivers/SConscript
parentd586417bb7d4c01f089f262f611f825c8a144fd5 (diff)
[add] 添加 RA6m4-CPK 的 BSP 支持包
Diffstat (limited to 'bsp/ra6m4-cpk/drivers/SConscript')
-rw-r--r--bsp/ra6m4-cpk/drivers/SConscript24
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')