1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
29
30
39
40
41
42
43
44
45
46
47
48
49
50
/* ... */
#ifndef __APP_ETHERNET_H
#define __APP_ETHERNET_H
#ifdef __cplusplus
extern "C" {
#endif
#include "lwip/netif.h"
Includes
#define DHCP_OFF (uint8_t) 0
#define DHCP_START (uint8_t) 1
#define DHCP_WAIT_ADDRESS (uint8_t) 2
#define DHCP_ADDRESS_ASSIGNED (uint8_t) 3
#define DHCP_TIMEOUT (uint8_t) 4
#define DHCP_LINK_DOWN (uint8_t) 5
6 defines Exported constants
void ethernet_link_status_updated(struct netif *netif);
#if LWIP_DHCP
void DHCP_Thread(void const * argument);
#endif
#ifdef __cplusplus
}extern "C" { ... }
#endif
/* ... */
#endif