Loading...
Searching...
No Matches
netdev.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include "net/ethernet.h"
21#include "net/netdev.h"
22
23#include "lwip/err.h"
24#include "lwip/netif.h"
25#include "lwip/tcpip.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
37#ifndef LWIP_NETDEV_BUFLEN
38# define LWIP_NETDEV_BUFLEN (ETHERNET_MAX_LEN)
39#endif
40
44#define LWIP_NETDEV_NAME "lwip_netdev_mux"
45
49#define LWIP_NETDEV_PRIO (THREAD_PRIORITY_MAIN - 4)
50
54#ifndef LWIP_NETDEV_STACKSIZE
55# define LWIP_NETDEV_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
56#endif
57
72err_t lwip_netdev_init(struct netif *netif);
73
74#ifdef __cplusplus
75}
76#endif
77
Definitions low-level network driver interface.
Definitions for Ethernet.
err_t lwip_netdev_init(struct netif *netif)
Initializes the netdev adapter.