Skip to content

Commit

Permalink
[nxp/mcxn] support Ethernet
Browse files Browse the repository at this point in the history
  • Loading branch information
zealsoftstudio authored Apr 1, 2024
1 parent c24280f commit 79e2946
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bsp/nxp/mcx/mcxn/Libraries/drivers/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions bsp/nxp/mcx/mcxn/frdm-mcxn947/board/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 79e2946

Please sign in to comment.