Skip to content
Closed
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
7 changes: 6 additions & 1 deletion bsp/gd32/arm/gd32527I-eval/board/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ menu "On-chip Peripheral Drivers"
bool "Enable SDRAM"
select RT_USING_SDRAM
default n

menuconfig BSP_USING_CAN
bool "Enable CAN BUS"
default n
Expand Down Expand Up @@ -421,6 +421,11 @@ menu "On-chip Peripheral Drivers"

endif

config BSP_USING_ETH
bool "Enable Ethernet"
default n
select RT_USING_LWIP

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

endmenu
Expand Down
2 changes: 1 addition & 1 deletion bsp/gd32/arm/gd32527I-eval/board/gd32f5xx_libopt.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "gd32f5xx_dbg.h"
#include "gd32f5xx_dci.h"
#include "gd32f5xx_dma.h"
//#include "gd32f5xx_enet.h"
#include "gd32f5xx_enet.h"
#include "gd32f5xx_exmc.h"
#include "gd32f5xx_exti.h"
#include "gd32f5xx_fmc.h"
Expand Down
4 changes: 4 additions & 0 deletions bsp/gd32/arm/libraries/gd32_drivers/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ if GetDepend('RT_USING_CAN'):
if GetDepend('BSP_USING_SDRAM'):
src += ['drv_sdram.c']

# add eth drivers.
if GetDepend(['BSP_USING_ETH', 'RT_USING_LWIP']):
src += ['drv_eth.c']

path = [cwd]

group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
Expand Down
Loading
Loading