Browse Source

[nxp/mcxn] support Ethernet

zealsoftstudio 1 year ago
parent
commit
79e2946467

+ 3 - 0
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)

+ 8 - 0
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