36 |
|
|
37 |
#include "lwip/pbuf.h" |
#include "lwip/pbuf.h" |
38 |
#include "lwip/udp.h" |
#include "lwip/udp.h" |
39 |
|
#include "lwip/raw.h" |
40 |
#include "lwip/tcp.h" |
#include "lwip/tcp.h" |
41 |
#include "lwip/api.h" |
#include "lwip/api.h" |
42 |
#include "lwip/api_msg.h" |
#include "lwip/api_msg.h" |
55 |
|
|
56 |
static const u16_t memp_sizes[MEMP_MAX] = { |
static const u16_t memp_sizes[MEMP_MAX] = { |
57 |
sizeof(struct pbuf), |
sizeof(struct pbuf), |
58 |
|
sizeof(struct raw_pcb), |
59 |
sizeof(struct udp_pcb), |
sizeof(struct udp_pcb), |
60 |
sizeof(struct tcp_pcb), |
sizeof(struct tcp_pcb), |
61 |
sizeof(struct tcp_pcb_listen), |
sizeof(struct tcp_pcb_listen), |
69 |
|
|
70 |
static const u16_t memp_num[MEMP_MAX] = { |
static const u16_t memp_num[MEMP_MAX] = { |
71 |
MEMP_NUM_PBUF, |
MEMP_NUM_PBUF, |
72 |
|
MEMP_NUM_RAW_PCB, |
73 |
MEMP_NUM_UDP_PCB, |
MEMP_NUM_UDP_PCB, |
74 |
MEMP_NUM_TCP_PCB, |
MEMP_NUM_TCP_PCB, |
75 |
MEMP_NUM_TCP_PCB_LISTEN, |
MEMP_NUM_TCP_PCB_LISTEN, |
84 |
static u8_t memp_memory[(MEMP_NUM_PBUF * |
static u8_t memp_memory[(MEMP_NUM_PBUF * |
85 |
MEM_ALIGN_SIZE(sizeof(struct pbuf) + |
MEM_ALIGN_SIZE(sizeof(struct pbuf) + |
86 |
sizeof(struct memp)) + |
sizeof(struct memp)) + |
87 |
|
MEMP_NUM_RAW_PCB * |
88 |
|
MEM_ALIGN_SIZE(sizeof(struct raw_pcb) + |
89 |
|
sizeof(struct memp)) + |
90 |
MEMP_NUM_UDP_PCB * |
MEMP_NUM_UDP_PCB * |
91 |
MEM_ALIGN_SIZE(sizeof(struct udp_pcb) + |
MEM_ALIGN_SIZE(sizeof(struct udp_pcb) + |
92 |
sizeof(struct memp)) + |
sizeof(struct memp)) + |