forked from yystopf/xiuos
Ubiquitous/RT_Thread/:add ethernet feature configuration.
This commit is contained in:
parent
30d532f35d
commit
2145cd73f6
|
@ -210,6 +210,39 @@ menu "Onboard Peripheral Drivers"
|
||||||
config BSP_USING_SDRAM
|
config BSP_USING_SDRAM
|
||||||
bool "Enable SDRAM"
|
bool "Enable SDRAM"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
menuconfig BSP_USING_ETH
|
||||||
|
bool "Enable Ethernet"
|
||||||
|
select RT_USING_NETDEV
|
||||||
|
default n
|
||||||
|
if BSP_USING_ETH
|
||||||
|
config BSP_USING_PHY
|
||||||
|
select RT_USING_PHY
|
||||||
|
bool "Enable ethernet phy"
|
||||||
|
default y
|
||||||
|
|
||||||
|
if BSP_USING_PHY
|
||||||
|
config PHY_DEVICE_ADDRESS
|
||||||
|
int "Specify address of phy device"
|
||||||
|
default 0
|
||||||
|
|
||||||
|
config PHY_USING_8720A
|
||||||
|
bool "xidatong use LAN8720A phy"
|
||||||
|
default y
|
||||||
|
|
||||||
|
if PHY_USING_8720A
|
||||||
|
config PHY_RESET_PORT
|
||||||
|
int "indicate port of reset"
|
||||||
|
default 1
|
||||||
|
|
||||||
|
config PHY_RESET_PIN
|
||||||
|
int "indicate pin of reset"
|
||||||
|
default 3
|
||||||
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,8 @@ MCUX_Config/pin_mux.c
|
||||||
|
|
||||||
CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports']
|
CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports']
|
||||||
CPPDEFINES = ['CPU_MIMXRT1052CVL5B', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1','XIP_EXTERNAL_FLASH=1']
|
CPPDEFINES = ['CPU_MIMXRT1052CVL5B', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1','XIP_EXTERNAL_FLASH=1']
|
||||||
|
if GetDepend('BSP_USING_PHY') and GetDepend('PHY_USING_8720A'):
|
||||||
|
src += ['./ports/LAN8720A.c']
|
||||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
Loading…
Reference in New Issue