23/08/03 Add Netdev to xidatong-arm32

This commit is contained in:
涂煜洋
2023-08-03 14:15:26 +08:00
parent 06b9d67f2d
commit 219575898a
17 changed files with 225 additions and 80 deletions
@@ -347,6 +347,8 @@ void lwip_config_input(struct netif* net)
void lwip_config_tcp(uint8_t enet_port, char* ip, char* mask, char* gw)
{
sys_sem_new(get_eth_recv_sem(), 0);
ip4_addr_t net_ipaddr, net_netmask, net_gw;
char* eth_cfg;
@@ -11,8 +11,6 @@
extern "C" {
#endif
#define NETDEV_DEBUG true
#define NETDEV_DEBUG_PRINT_IP_INFO(ip, netmask, gw) \
("[%s %d]ip: %u.%u.%u.%u, netmask: %u.%u.%u.%u, gw: %u.%u.%u.%u\n", \
__func__, __LINE__, \