forked from xuos/xiuos
23/08/03 Add Netdev to xidatong-arm32
This commit is contained in:
@@ -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__, \
|
||||
|
||||
Reference in New Issue
Block a user