From bb07f393b20e24d1d219e59f037e7e42b8602def Mon Sep 17 00:00:00 2001 From: tanek liang Date: Fri, 27 Oct 2017 20:27:28 +0800 Subject: [PATCH] [bsp] add enet and lwip for i.mx rt 1052 --- bsp/imxrt/drivers/SConscript | 4 + bsp/imxrt/project.ewp | 180 +++++++++++++++++++++++++++++++---- bsp/imxrt/project.ewt | 126 ++++++++++++++++++++++++ bsp/imxrt/rtconfig.h | 15 +-- bsp/imxrt/template.uvprojx | 2 +- 5 files changed, 300 insertions(+), 27 deletions(-) diff --git a/bsp/imxrt/drivers/SConscript b/bsp/imxrt/drivers/SConscript index ef3f86be30..1b44c183d0 100644 --- a/bsp/imxrt/drivers/SConscript +++ b/bsp/imxrt/drivers/SConscript @@ -13,6 +13,10 @@ usart.c CPPPATH = [cwd] CPPDEFINES = [] +if GetDepend('RT_USING_LWIP'): + src += ['drv_eth.c', 'fsl_phy.c'] + CPPDEFINES += ['FSL_FEATURE_PHYKSZ8081_USE_RMII50M_MODE'] + if GetDepend('RT_USING_SDIO'): src += ['drv_sdio.c'] diff --git a/bsp/imxrt/project.ewp b/bsp/imxrt/project.ewp index bb3dae2d51..13fae04f87 100644 --- a/bsp/imxrt/project.ewp +++ b/bsp/imxrt/project.ewp @@ -198,7 +198,7 @@ @@ -216,6 +216,7 @@