Prusa MINI Firmware overview
|
Go to the documentation of this file.
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(type, pool, name, errorval) do { \
59 name = (type *)memp_malloc(pool); \
64 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) do { \
65 name = (type *)LWIP_MEMPOOL_ALLOC(pool); \
70 #define API_VAR_FREE(pool, name) memp_free(pool, name)
71 #define API_VAR_FREE_POOL(pool, name) LWIP_MEMPOOL_FREE(pool, name)
72 #define API_EXPR_REF(expr) (&(expr))
73 #if LWIP_NETCONN_SEM_PER_THREAD
74 #define API_EXPR_REF_SEM(expr) (expr)
76 #define API_EXPR_REF_SEM(expr) API_EXPR_REF(expr)
78 #define API_EXPR_DEREF(expr) expr
79 #define API_MSG_M_DEF(m) m
80 #define API_MSG_M_DEF_C(t, m) t m
82 #define API_VAR_REF(name) name
83 #define API_VAR_DECLARE(type, name) type name
84 #define API_VAR_ALLOC(type, pool, name, errorval)
85 #define API_VAR_ALLOC_POOL(type, pool, name, errorval)
86 #define API_VAR_FREE(pool, name)
87 #define API_VAR_FREE_POOL(pool, name)
88 #define API_EXPR_REF(expr) expr
89 #define API_EXPR_REF_SEM(expr) API_EXPR_REF(expr)
90 #define API_EXPR_DEREF(expr) (*(expr))
91 #define API_MSG_M_DEF(m) *m
92 #define API_MSG_M_DEF_C(t, m) const t * m
99 #if !LWIP_TCPIP_CORE_LOCKING
101 #if !LWIP_NETCONN_SEM_PER_THREAD
115 #if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS
144 #if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS
147 sys_timeout_handler h;
sys_sem_t * sem
Definition: tcpip_priv.h:133
struct tcpip_msg::@61::@62 api_msg
Definition: tcpip_priv.h:114
Definition: tcpip_priv.h:97
err_t tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call_data *call)
Definition: tcpip.c:365
tcpip_msg_type
Definition: tcpip_priv.h:111
err_t err
Definition: tcpip_priv.h:100
uint32_t u32_t
Definition: arch.h:123
struct tcpip_msg::@61::@63 api_call
err_t(* netif_input_fn)(struct pbuf *p, struct netif *inp)
Definition: netif.h:162
void * msg
Definition: tcpip_priv.h:128
sys_sem_t sem
Definition: tcpip_priv.h:102
osSemaphoreId sys_sem_t
Definition: sys_arch.h:41
uint8_t u8_t
Definition: arch.h:119
netif_input_fn input_fn
Definition: tcpip_priv.h:138
enum tcpip_msg_type type
Definition: tcpip_priv.h:124
struct tcpip_msg::@61::@64 inp
Definition: tcpip_priv.h:120
Definition: tcpip_priv.h:123
s8_t err_t
Definition: err.h:57
err_t tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t *sem)
Definition: tcpip.c:329
Definition: tcpip_priv.h:112
struct netif * netif
Definition: tcpip_priv.h:137
struct tcpip_msg::@61::@65 cb
Definition: tcpip_priv.h:113
void * ctx
Definition: tcpip_priv.h:142
void(* tcpip_callback_fn)(void *ctx)
Definition: tcpip.h:70
struct pbuf * p
Definition: tcpip_priv.h:136
Definition: tcpip_priv.h:119
struct tcpip_api_call_data * arg
Definition: tcpip_priv.h:132
err_t(* tcpip_api_call_fn)(struct tcpip_api_call_data *call)
Definition: tcpip_priv.h:108