Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions bsp/gd32/arm/gd32h759i-eval/.config
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,9 @@
#
# CONFIG_RT_KLIBC_USING_USER_STRNLEN is not set
# end of rt_strnlen options

# CONFIG_RT_UTEST_TC_USING_KLIBC is not set
# end of klibc options

CONFIG_RT_NAME_MAX=8
CONFIG_RT_NAME_MAX=16
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set
# CONFIG_RT_USING_NANO is not set
# CONFIG_RT_USING_SMART is not set
Expand Down Expand Up @@ -1443,6 +1441,7 @@ CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_UART1 is not set
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
# CONFIG_BSP_USING_I2C is not set
# end of On-chip Peripheral Drivers

#
Expand Down
31 changes: 30 additions & 1 deletion bsp/gd32/arm/gd32h759i-eval/board/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,37 @@ menu "On-chip Peripheral Drivers"

endif

source "$(BSP_DIR)/../libraries/gd32_drivers/Kconfig"
menuconfig BSP_USING_I2C
bool "Enable I2C"
default n
if BSP_USING_I2C
menuconfig BSP_USING_HARD_I2C
bool "Enable Hardware I2C"
default n
select RT_USING_I2C
if BSP_USING_HARD_I2C
config BSP_USING_HARD_I2C0
bool "Enable I2C0 Hardware BUS"
default n
config BSP_USING_HARD_I2C1
bool "Enable I2C1 Hardware BUS"
default n
config BSP_USING_HARD_I2C2
bool "Enable I2C2 Hardware BUS"
default n
config BSP_USING_HARD_I2C3
bool "Enable I2C3 Hardware BUS"
default n
config BSP_USING_HARD_I2C4
bool "Enable I2C4 Hardware BUS"
default n
config BSP_USING_HARD_I2C5
bool "Enable I2C5 Hardware BUS"
default n
endif
endif

source "$(BSP_DIR)/../libraries/gd32_drivers/Kconfig"
endmenu

menu "Board extended module Drivers"
Expand Down
Loading
Loading