Skip to content

Commit 73aa05b

Browse files
committed
feat(k230): add PDMA driver support
1 parent 1ce9fa6 commit 73aa05b

File tree

5 files changed

+1341
-0
lines changed

5 files changed

+1341
-0
lines changed

bsp/k230/.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ CONFIG_FINSH_THREAD_PRIORITY=20
228228
CONFIG_FINSH_THREAD_STACK_SIZE=8192
229229
CONFIG_FINSH_USING_HISTORY=y
230230
CONFIG_FINSH_HISTORY_LINES=5
231+
# CONFIG_FINSH_USING_WORD_OPERATION is not set
231232
CONFIG_FINSH_USING_SYMTAB=y
232233
CONFIG_FINSH_CMD_SIZE=80
233234
CONFIG_MSH_USING_BUILT_IN_COMMANDS=y
@@ -1149,6 +1150,7 @@ CONFIG_RT_USING_VDSO=y
11491150
# CONFIG_PKG_USING_STHS34PF80 is not set
11501151
# CONFIG_PKG_USING_P3T1755 is not set
11511152
# CONFIG_PKG_USING_QMI8658 is not set
1153+
# CONFIG_PKG_USING_ICM20948 is not set
11521154
# end of sensors drivers
11531155

11541156
#
@@ -1601,6 +1603,7 @@ CONFIG_BSP_USING_SDIO0=y
16011603
CONFIG_BSP_SD_MNT_DEVNAME="sd0p1"
16021604
# CONFIG_BSP_USING_TIMERS is not set
16031605
# CONFIG_BSP_USING_WDT is not set
1606+
# CONFIG_BSP_USING_PDMA is not set
16041607
# CONFIG_BSP_UTEST_DRIVERS is not set
16051608
# end of Drivers Configuration
16061609

bsp/k230/board/Kconfig

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,45 @@ menu "Drivers Configuration"
107107

108108
endif
109109

110+
menuconfig BSP_USING_PDMA
111+
bool "Enable PDMA"
112+
select RT_USING_PDMA
113+
default n
114+
115+
if BSP_USING_PDMA
116+
config BSP_USING_PDMA_CHANNEL0
117+
bool "Enable PDMA Channel 0"
118+
default n
119+
120+
config BSP_USING_PDMA_CHANNEL1
121+
bool "Enable PDMA Channel 1"
122+
default n
123+
124+
config BSP_USING_PDMA_CHANNEL2
125+
bool "Enable PDMA Channel 2"
126+
default n
127+
128+
config BSP_USING_PDMA_CHANNEL3
129+
bool "Enable PDMA Channel 3"
130+
default n
131+
132+
config BSP_USING_PDMA_CHANNEL4
133+
bool "Enable PDMA Channel 4"
134+
default n
135+
136+
config BSP_USING_PDMA_CHANNEL5
137+
bool "Enable PDMA Channel 5"
138+
default n
139+
140+
config BSP_USING_PDMA_CHANNEL6
141+
bool "Enable PDMA Channel 6"
142+
default n
143+
144+
config BSP_USING_PDMA_CHANNEL7
145+
bool "Enable PDMA Channel 7"
146+
default n
147+
endif
148+
110149
config BSP_UTEST_DRIVERS
111150
bool "Enable drivers utest"
112151
select RT_USING_UTEST
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# RT-Thread building script for component
2+
3+
from building import *
4+
5+
cwd = GetCurrentDir()
6+
src = Glob('*.c') + Glob('*.S')
7+
CPPPATH = [cwd]
8+
9+
group = DefineGroup('PDMA', src, depend = ['BSP_USING_PDMA'], 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')
20+

0 commit comments

Comments
 (0)