未验证 提交 577d619d 编写于 作者: 还_没_想_好's avatar 还_没_想_好 提交者: GitHub

[net][lwip] Support windows simulator (#5993)

上级 e8d775f8
......@@ -8,6 +8,6 @@
* 2022-02-20 Meco Man add RT-Thread copyright
*/
#if defined(__ICCARM__)
#if defined(__ICCARM__) || defined(_WIN32)
#pragma pack(1)
#endif
......@@ -100,6 +100,7 @@ typedef uintptr_t mem_ptr_t;
#define PACK_STRUCT_STRUCT
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END
#define PACK_STRUCT_USE_INCLUDES
#endif
void sys_arch_assert(const char* file, int line);
......
......@@ -8,6 +8,6 @@
* 2022-02-20 Meco Man add RT-Thread copyright
*/
#if defined(__ICCARM__)
#if defined(__ICCARM__) || defined(_WIN32)
#pragma pack()
#endif
......@@ -469,13 +469,13 @@ static err_t eth_netif_device_init(struct netif *netif)
rt_device_t device;
#ifdef RT_USING_NETDEV
/* network interface device register */
netdev_add(netif);
/* network interface device register */
netdev_add(netif);
#endif /* RT_USING_NETDEV */
/* get device object */
device = (rt_device_t) ethif;
if (rt_device_init(device) != RT_EOK)
if (rt_device_open(device, RT_DEVICE_FLAG_RDWR) != RT_EOK)
{
return ERR_IF;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册