HPM APP
HPMicro Application solution
netconf.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 HPMicro
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*
6
*/
7
#ifndef NETCONF_H
8
#define NETCONF_H
9
10
/* Exported macro ------------------------------------------------------------*/
11
#define DHCP_START 1
12
#define DHCP_WAIT_ADDRESS 2
13
#define DHCP_ADDRESS_ASSIGNED 3
14
#define DHCP_TIMEOUT 4
15
#define DHCP_LINK_DOWN 5
16
17
/* MAC ADDRESS */
18
#define MAC_ADDR0 0x98
19
#define MAC_ADDR1 0x2C
20
#define MAC_ADDR2 0xBC
21
#define MAC_ADDR3 0xB1
22
#define MAC_ADDR4 0x9F
23
#define MAC_ADDR5 0x17
24
25
/* Static IP ADDRESS */
26
#define IP_ADDR0 10
27
#define IP_ADDR1 10
28
#define IP_ADDR2 10
29
#define IP_ADDR3 10
30
31
/* NETMASK */
32
#define NETMASK_ADDR0 255
33
#define NETMASK_ADDR1 255
34
#define NETMASK_ADDR2 255
35
#define NETMASK_ADDR3 0
36
37
/* Gateway Address */
38
#define GW_ADDR0 10
39
#define GW_ADDR1 10
40
#define GW_ADDR2 10
41
#define GW_ADDR3 1
42
43
#ifdef __cplusplus
44
extern
"C"
{
45
#endif
46
/* Exported variables---------------------------------------------------------*/
47
extern
struct
netif
gnetif
;
48
/* Exported functions ------------------------------------------------------- */
49
void
netif_config
(
void
);
50
void
user_notification
(
struct
netif *netif);
51
#ifdef __cplusplus
/* __cplusplus */
52
}
53
#endif
54
55
#endif
/* NETCONF_H */
gnetif
struct netif gnetif
Definition:
netconf.c:37
netif_config
void netif_config(void)
Definition:
netconf.c:129
user_notification
void user_notification(struct netif *netif)
Definition:
netconf.c:150
apps
lwip_adc
software
lwip_tcpecho
inc
eth
netconf.h
Generated on Thu Dec 25 2025 10:02:23 for HPM APP by
1.9.1