Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/net/lwip/port/arch/bpstruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions components/net/lwip/port/arch/cc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion components/net/lwip/port/arch/epstruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
* 2022-02-20 Meco Man add RT-Thread copyright
*/

#if defined(__ICCARM__)
#if defined(__ICCARM__) || defined(_WIN32)
#pragma pack()
#endif
6 changes: 3 additions & 3 deletions components/net/lwip/port/ethernetif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down