Skip to content

Commit 6bdce0f

Browse files
committed
bsp: k230: add uart driver for cannan
uart is just a temp driver which does not support all uart controolers. Later we need to integarate uart_canaan and uart to provide a full support. Signed-off-by: Wang Chen <[email protected]>
1 parent d00ff3a commit 6bdce0f

File tree

3 files changed

+797
-0
lines changed

3 files changed

+797
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# RT-Thread building script for component
2+
3+
from building import *
4+
5+
cwd = GetCurrentDir()
6+
src = Glob('*.c')
7+
CPPPATH = [cwd]
8+
9+
group = DefineGroup('Uart', src, depend = ['RT_USING_CANAAN_UART'], CPPPATH = CPPPATH)
10+
11+
objs = [group]
12+
13+
list = os.listdir(cwd)
14+
15+
for item in list:
16+
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
17+
objs = objs + SConscript(os.path.join(item, 'SConscript'))
18+
19+
Return('objs')

0 commit comments

Comments
 (0)