37 #ifndef LWIP_HDR_TCPIP_PRIV_H
38 #define LWIP_HDR_TCPIP_PRIV_H
55 #if LWIP_MPU_COMPATIBLE
56 #define API_VAR_REF(name) (*(name))
57 #define API_VAR_DECLARE(type, name) type * name
58 #define API_VAR_ALLOC_EXT(type, pool, name, errorblock) do { \
59 name = (type *)memp_malloc(pool); \
64 #define API_VAR_ALLOC(type, pool, name, errorval) API_VAR_ALLOC_EXT(type, pool, name, return errorval)
65 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) do { \
66 name = (type *)LWIP_MEMPOOL_ALLOC(pool); \
71 #define API_VAR_FREE(pool, name) memp_free(pool, name)
72 #define API_VAR_FREE_POOL(pool, name) LWIP_MEMPOOL_FREE(pool, name)
73 #define API_EXPR_REF(expr) (&(expr))
74 #if LWIP_NETCONN_SEM_PER_THREAD
75 #define API_EXPR_REF_SEM(expr) (expr)
77 #define API_EXPR_REF_SEM(expr) API_EXPR_REF(expr)
79 #define API_EXPR_DEREF(expr) expr
80 #define API_MSG_M_DEF(m) m
81 #define API_MSG_M_DEF_C(t, m) t m
83 #define API_VAR_REF(name) name
84 #define API_VAR_DECLARE(type, name) type name
85 #define API_VAR_ALLOC_EXT(type, pool, name, errorblock)
86 #define API_VAR_ALLOC(type, pool, name, errorval)
87 #define API_VAR_ALLOC_POOL(type, pool, name, errorval)
88 #define API_VAR_FREE(pool, name)
89 #define API_VAR_FREE_POOL(pool, name)
90 #define API_EXPR_REF(expr) expr
91 #define API_EXPR_REF_SEM(expr) API_EXPR_REF(expr)
92 #define API_EXPR_DEREF(expr) (*(expr))
93 #define API_MSG_M_DEF(m) *m
94 #define API_MSG_M_DEF_C(t, m) const t * m
101 #if !LWIP_TCPIP_CORE_LOCKING
103 #if !LWIP_NETCONN_SEM_PER_THREAD
114 #if !LWIP_TCPIP_CORE_LOCKING
118 #if !LWIP_TCPIP_CORE_LOCKING_INPUT
121 #if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS
132 #if !LWIP_TCPIP_CORE_LOCKING
143 #if !LWIP_TCPIP_CORE_LOCKING_INPUT
154 #if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS
157 sys_timeout_handler h;
uint32_t u32_t
Definition: arch.h:129
uint8_t u8_t
Definition: arch.h:125
s8_t err_t
Definition: err.h:96
err_t(* netif_input_fn)(struct pbuf *p, struct netif *inp)
Definition: netif.h:178
Definition: tcpip_priv.h:100
err_t err
Definition: tcpip_priv.h:102
sys_sem_t sem
Definition: tcpip_priv.h:104
Definition: tcpip_priv.h:129
struct tcpip_api_call_data * arg
Definition: tcpip_priv.h:139
void * msg
Definition: tcpip_priv.h:135
netif_input_fn input_fn
Definition: tcpip_priv.h:147
enum tcpip_msg_type type
Definition: tcpip_priv.h:130
sys_sem_t * sem
Definition: tcpip_priv.h:140
struct netif * netif
Definition: tcpip_priv.h:146
struct tcpip_msg::@76::@80 cb
void * ctx
Definition: tcpip_priv.h:152
struct pbuf * p
Definition: tcpip_priv.h:145
struct tcpip_msg::@76::@78 api_call
struct tcpip_msg::@76::@79 inp
struct tcpip_msg::@76::@77 api_msg
osSemaphoreId sys_sem_t
Definition: sys_arch.h:52
void(* tcpip_callback_fn)(void *ctx)
Definition: tcpip.h:72
err_t tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t *sem)
Definition: tcpip.c:437
tcpip_msg_type
Definition: tcpip_priv.h:113
@ TCPIP_MSG_CALLBACK_STATIC
Definition: tcpip_priv.h:126
@ TCPIP_MSG_CALLBACK
Definition: tcpip_priv.h:125
@ TCPIP_MSG_INPKT
Definition: tcpip_priv.h:119
@ TCPIP_MSG_API
Definition: tcpip_priv.h:115
@ TCPIP_MSG_API_CALL
Definition: tcpip_priv.h:116
err_t tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call_data *call)
Definition: tcpip.c:473
err_t(* tcpip_api_call_fn)(struct tcpip_api_call_data *call)
Definition: tcpip_priv.h:110