eclipse-threadx / usbx

Eclipse ThreadX - USBX is a high-performance USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with Eclipse ThreadX RTOS
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/usbx/index.md
MIT License
157 stars 93 forks source link

ux_network_driver #62

Closed chengshuihang closed 1 year ago

chengshuihang commented 2 years ago

我想支持下NX_LINK_GET_STATUS,下面代码可以吗? 76bfb1c6214075c2c16ae5d521b23bd 我发现关于ux_network_device_link_status的操作都是没有mutex的,在USB网卡插拔或者复位的时候不会对Netxduo造成破坏性影响吗?

另外ux_network_driver好像不支持IPV6,而且IPV6宏有个小错误 793787ce365ecbb7eacb341b00eccce

xiaocq2001 commented 2 years ago

For IPV6 support, NX_ETHERNET_IPV6 should be 0x86DD (ref here), To support IPV6 incoming packet, additional change in _ux_network_driver_packet_received should be made to accept IPV6 packets (ref here).

chengshuihang commented 2 years ago

是的,我修改了_ux_network_driver_packet_received和_ux_host_class_cdc_ecm_thread函数,让它们可以处理IPV6数据包。

xiaocq2001 commented 2 years ago

network driver updated with IPV6 and some other fixes.