Skip to content

Commit 6102276

Browse files
authored
Merge branch 'RT-Thread:master' into master
2 parents 90005da + 6a9d218 commit 6102276

File tree

14 files changed

+959
-1197
lines changed

14 files changed

+959
-1197
lines changed

bsp/gd32/arm/gd32h759i-eval/.config

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,9 @@
104104
#
105105
# CONFIG_RT_KLIBC_USING_USER_STRNLEN is not set
106106
# end of rt_strnlen options
107-
108-
# CONFIG_RT_UTEST_TC_USING_KLIBC is not set
109107
# end of klibc options
110108

111-
CONFIG_RT_NAME_MAX=8
109+
CONFIG_RT_NAME_MAX=16
112110
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set
113111
# CONFIG_RT_USING_NANO is not set
114112
# CONFIG_RT_USING_SMART is not set
@@ -1443,6 +1441,7 @@ CONFIG_BSP_USING_UART0=y
14431441
# CONFIG_BSP_USING_UART1 is not set
14441442
# CONFIG_BSP_USING_UART2 is not set
14451443
# CONFIG_BSP_USING_UART3 is not set
1444+
# CONFIG_BSP_USING_I2C is not set
14461445
# end of On-chip Peripheral Drivers
14471446

14481447
#

bsp/gd32/arm/gd32h759i-eval/board/Kconfig

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,37 @@ menu "On-chip Peripheral Drivers"
6969

7070
endif
7171

72-
source "$(BSP_DIR)/../libraries/gd32_drivers/Kconfig"
72+
menuconfig BSP_USING_I2C
73+
bool "Enable I2C"
74+
default n
75+
if BSP_USING_I2C
76+
menuconfig BSP_USING_HARD_I2C
77+
bool "Enable Hardware I2C"
78+
default n
79+
select RT_USING_I2C
80+
if BSP_USING_HARD_I2C
81+
config BSP_USING_HARD_I2C0
82+
bool "Enable I2C0 Hardware BUS"
83+
default n
84+
config BSP_USING_HARD_I2C1
85+
bool "Enable I2C1 Hardware BUS"
86+
default n
87+
config BSP_USING_HARD_I2C2
88+
bool "Enable I2C2 Hardware BUS"
89+
default n
90+
config BSP_USING_HARD_I2C3
91+
bool "Enable I2C3 Hardware BUS"
92+
default n
93+
config BSP_USING_HARD_I2C4
94+
bool "Enable I2C4 Hardware BUS"
95+
default n
96+
config BSP_USING_HARD_I2C5
97+
bool "Enable I2C5 Hardware BUS"
98+
default n
99+
endif
100+
endif
73101

102+
source "$(BSP_DIR)/../libraries/gd32_drivers/Kconfig"
74103
endmenu
75104

76105
menu "Board extended module Drivers"

0 commit comments

Comments
 (0)