summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzealsoftstudio <[email protected]>2024-04-02 06:44:26 +0800
committerGitHub <[email protected]>2024-04-01 18:44:26 -0400
commit79e2946467b7598ca01e379a3603314efc270e60 (patch)
tree5408a16d7c959a943e391fe031fd1ac3105a6992
parentc24280f6ef15796aa23390e510d82f720a8ffcd3 (diff)
[nxp/mcxn] support Ethernet
-rw-r--r--bsp/nxp/mcx/mcxn/Libraries/drivers/SConscript3
-rw-r--r--bsp/nxp/mcx/mcxn/frdm-mcxn947/board/Kconfig8
2 files changed, 11 insertions, 0 deletions
diff --git a/bsp/nxp/mcx/mcxn/Libraries/drivers/SConscript b/bsp/nxp/mcx/mcxn/Libraries/drivers/SConscript
index 71f854f1fa..de8052d465 100644
--- a/bsp/nxp/mcx/mcxn/Libraries/drivers/SConscript
+++ b/bsp/nxp/mcx/mcxn/Libraries/drivers/SConscript
@@ -37,6 +37,9 @@ if GetDepend('BSP_USING_WDT'):
if GetDepend('BSP_USING_PWM'):
src += ['drv_pwm.c']
+if GetDepend('BSP_USING_ETH'):
+ src += ['drv_eth.c']
+
path = [cwd,cwd + '/config']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
diff --git a/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/Kconfig b/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/Kconfig
index 31e3395933..3e335d22cf 100644
--- a/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/Kconfig
+++ b/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/Kconfig
@@ -135,6 +135,13 @@ menu "On-chip Peripheral Drivers"
select RT_USING_DFS_ELMFAT
default y
+ config BSP_USING_ETH
+ bool "Enable Ethernet"
+ default n
+ select RT_USING_LWIP
+ select RT_USING_NETDEV
+ select RT_USING_SAL
+
config BSP_USING_RTC
bool "Enable RTC"
select RT_USING_RTC
@@ -162,6 +169,7 @@ menu "On-chip Peripheral Drivers"
bool "Enable on-board green LED as PWM output (pwm0, channel 3)"
default y
endif
+
endmenu