blob: 6194d06a64ea01c80a1422a2a46b7c23d5760577 (
plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#ifndef __ETH_LWIP_DEFAULT_H
#define __ETH_LWIP_DEFAULT_H
/* #define DEBUG 1 */
/* #define STATIC_IP_ADDRESS 1 */
void tms570_eth_memp_avaible(int type);
#define ETH_LWIP_INIT_NETIF_FNC tms570_eth_init_netif
/*called from memp_free() when a memp pool was empty and an item is now available*/
#define LWIP_HOOK_MEMP_AVAILABLE tms570_eth_memp_avaible
/* this MAC address is used when user put NULL on the right place when calling postInit function */
/**
* Default MAC address for interface.
*/
#define MAC_ADDR_LEN ETHARP_HWADDR_LEN
#ifndef ETH_MAC_ADDR
#define ETH_MAC_ADDR { 0x12 /* Unicast, Locally administered */, 0x34, 0x56, 0x78, 0x9A, 0xBC }
#endif
#if STATIC_IP_ADDRESS
/**
* When static IP is configured in lwipopts.h, this IP address is used for interface.
*/
#ifndef ETH_IP_ADDR
#define ETH_IP_ADDR 0xC0A8F701 /* 192.168.247.1 */
#endif
/**
* When static IP is configured in lwipopts.h, this NETMASK address is used for interface.
*/
#ifndef ETH_NETMASK
#define ETH_NETMASK 0xFFFFFF00 /* 255.255.255.0 */
#endif
/**
* When static IP is configured in lwipopts.h, this Gateway address is used for interface.
*/
#ifndef ETH_GW
#define ETH_GW 0xC0A8F7FE /* 192.168.247.254*/
#endif
#endif /* STATIC_IP_ADDRESS */
#endif /* __ETH_LWIP_DEFAULT_H */
|