Skip to content

Commit d3e2699

Browse files
Ze-HouRbb666
authored andcommitted
bsp: k230: add dma support to the i2c driver
1. add dma support to the I2C driver to improve efficiency. Signed-off-by: Ze-Hou <yingkezhou@qq.com>
1 parent 583d7f4 commit d3e2699

File tree

6 files changed

+455
-55
lines changed

6 files changed

+455
-55
lines changed

bsp/k230/.ci/attachconfig/ci.attachconfig.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ devices.i2c:
1313
- CONFIG_RT_USING_I2C=y
1414
- CONFIG_BSP_USING_I2C=y
1515
- CONFIG_BSP_USING_I2C0=y
16+
- CONFIG_BSP_USING_I2C_DMA=y
1617
devices.adc:
1718
<<: *scons
1819
kconfig:

bsp/k230/.config

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,6 @@ CONFIG_RT_USING_VDSO=y
941941
# CONFIG_PKG_USING_R_RHEALSTONE is not set
942942
# CONFIG_PKG_USING_HEARTBEAT is not set
943943
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
944-
# CONFIG_PKG_USING_CHERRYECAT is not set
945944
# end of system packages
946945

947946
#
@@ -1099,12 +1098,6 @@ CONFIG_RT_USING_VDSO=y
10991098
# CONFIG_PKG_USING_GD32_ARM_CMSIS_DRIVER is not set
11001099
# CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER is not set
11011100
# end of GD32 Drivers
1102-
1103-
#
1104-
# HPMicro SDK
1105-
#
1106-
# CONFIG_PKG_USING_HPM_SDK is not set
1107-
# end of HPMicro SDK
11081101
# end of HAL & SDK Drivers
11091102

11101103
#

bsp/k230/board/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ menu "Drivers Configuration"
3232
default n
3333

3434
if BSP_USING_I2C
35+
config BSP_USING_I2C_DMA
36+
bool "Enable I2C with DMA"
37+
default n
38+
3539
config BSP_USING_I2C0
3640
bool "Enable I2C0"
3741
default n

0 commit comments

Comments
 (0)