HPM APP
HPMicro Application solution
netconf.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021-2024 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 #ifndef NETCONF_H
8 #define NETCONF_H
9 
10 #include "lwipopts.h"
11 #include "sys_arch.h"
12 #include "lwip/netif.h"
13 
14 /* MAC Address */
15 #ifndef MAC_ADDR0
16 #define MAC_ADDR0 0x98
17 #endif
18 
19 #ifndef MAC_ADDR1
20 #define MAC_ADDR1 0x2C
21 #endif
22 
23 #ifndef MAC_ADDR2
24 #define MAC_ADDR2 0xBC
25 #endif
26 
27 #ifndef MAC_ADDR3
28 #define MAC_ADDR3 0xB1
29 #endif
30 
31 #ifndef MAC_ADDR4
32 #define MAC_ADDR4 0x9F
33 #endif
34 
35 #ifndef MAC_ADDR5
36 #define MAC_ADDR5 0x17
37 #endif
38 
39 /* Remote IP Address */
40 #ifndef REMOTE_IP_ADDR0
41 #define REMOTE_IP_ADDR0 192
42 #endif
43 
44 #ifndef REMOTE_IP_ADDR1
45 #define REMOTE_IP_ADDR1 168
46 #endif
47 
48 #ifndef REMOTE_IP_ADDR2
49 #define REMOTE_IP_ADDR2 100
50 #endif
51 
52 #ifndef REMOTE_IP_ADDR3
53 #define REMOTE_IP_ADDR3 5
54 #endif
55 
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59 /* Exported variables---------------------------------------------------------*/
60 #if defined(NO_SYS) && !NO_SYS
61 extern sys_mbox_t netif_status_mbox;
62 #endif
63 
64 /* Exported functions ------------------------------------------------------- */
65 
66 #if defined(LWIP_DHCP) && LWIP_DHCP
67 void LwIP_DHCP_task(void *pvParameters);
68 #endif
69 
70 void netif_config(struct netif *netif);
71 void netif_user_notification(struct netif *netif);
72 
73 #if defined(NO_SYS) && !NO_SYS
74 void netif_update_link_status(void *pvParameters);
75 #endif
76 
77 #ifdef __cplusplus /* __cplusplus */
78 }
79 #endif
80 
81 #endif /* NETCONF_H */
void netif_config(struct netif *netif, uint8_t i)
Definition: netconf.c:79
void netif_user_notification(struct netif *netif)
Definition: netconf.c:100