添加tftp协议

1.usb连接上之后,可以使用tftp协议传输文件
2.解决写入sd卡时如果buff地址不是4字节对齐时数据错位的问题
This commit is contained in:
2025-10-18 23:55:18 +08:00
parent 045cff4cc6
commit eab38c8eff
8 changed files with 246 additions and 266 deletions

View File

@@ -218,16 +218,17 @@
#define RT_LWIP_TCP
#define RT_LWIP_UDP
#define RT_LWIP_ICMP
// #define RT_LWIP_DEBUG
#define RT_LWIP_TCPIP_DEBUG
#define RT_LWIP_NETIF_DEBUG
#define RT_LWIP_ETHARP_DEBUG
#define RT_LWIP_IP_DEBUG
#define RT_LWIP_UDP_DEBUG
#define RT_LWIP_DHCP
#define RT_LWIP_IGMP
#define RT_LWIP_RAW
// #define RT_LWIP_DEBUG
// #define RT_LWIP_TCPIP_DEBUG
// #define RT_LWIP_NETIF_DEBUG
// #define RT_LWIP_ETHARP_DEBUG
// #define RT_LWIP_IP_DEBUG
// #define RT_LWIP_UDP_DEBUG
#define RT_LWIP_PBUF_DEBUG
// <<< end of configuration section >>>
#endif