HPM APP
HPMicro Application solution
lwip.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021-2025 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 #ifndef LWIP_H
8 #define LWIP_H
9 
10 /* Includes ------------------------------------------------------------------*/
11 #include "board.h"
12 #include "hpm_enet_drv.h"
13 #include "hpm_l1c_drv.h"
14 /* Exported Macros------------------------------------------------------------*/
15 #if defined(RGMII) && RGMII
16 #define ENET_INF_TYPE enet_inf_rgmii
17 #define ENET BOARD_ENET_RGMII
18 #elif defined(RMII) && RMII
19 #define ENET_INF_TYPE enet_inf_rmii
20 #define ENET BOARD_ENET_RMII
21 #endif
22 
23 #define ENET_TX_BUFF_COUNT (10U)
24 #define ENET_RX_BUFF_COUNT (20U)
25 #define ENET_TX_BUFF_SIZE (1536U)
26 #define ENET_RX_BUFF_SIZE (1536U)
27 
28 /* Exported Variables ------------------------------------------------------*/
29 extern enet_desc_t desc;
30 extern uint8_t mac[];
31 
32 #if __ENABLE_ENET_RECEIVE_INTERRUPT
33 extern volatile bool rx_flag;
34 #endif
35 #endif /* LWIP_H */
enet_desc_t desc
uint8_t mac[]