37 #ifndef LWIP_HDR_TCPIP_H
38 #define LWIP_HDR_TCPIP_H
52 #if LWIP_TCPIP_CORE_LOCKING
55 #if !defined LOCK_TCPIP_CORE || defined __DOXYGEN__
57 #define LOCK_TCPIP_CORE() sys_mutex_lock(&lock_tcpip_core)
59 #define UNLOCK_TCPIP_CORE() sys_mutex_unlock(&lock_tcpip_core)
62 #define LOCK_TCPIP_CORE()
63 #define UNLOCK_TCPIP_CORE()
75 struct tcpip_callback_msg;
87 #define tcpip_callback_with_block(function, ctx, block) ((block != 0)? tcpip_callback(function, ctx) : tcpip_try_callback(function, ctx))
98 #if LWIP_TCPIP_TIMEOUT && LWIP_TIMERS
99 err_t tcpip_timeout(
u32_t msecs, sys_timeout_handler h,
void *arg);
100 err_t tcpip_untimeout(sys_timeout_handler h,
void *arg);
103 #ifdef TCPIP_THREAD_TEST
104 int tcpip_thread_poll_one(
void);
uint32_t u32_t
Definition: arch.h:129
s8_t err_t
Definition: err.h:96
err_t(* netif_input_fn)(struct pbuf *p, struct netif *inp)
Definition: netif.h:178
osSemaphoreId sys_mutex_t
Definition: sys_arch.h:53
void tcpip_init_done(void *)
void(* tcpip_callback_fn)(void *ctx)
Definition: tcpip.h:72
err_t mem_free_callback(void *m)
Definition: tcpip.c:653
err_t tcpip_callbackmsg_trycallback_fromisr(struct tcpip_callback_msg *msg)
Definition: tcpip.c:586
err_t pbuf_free_callback(struct pbuf *p)
Definition: tcpip.c:640
void(* tcpip_init_done_fn)(void *arg)
Definition: tcpip.h:70
err_t tcpip_callbackmsg_trycallback(struct tcpip_callback_msg *msg)
Definition: tcpip.c:567
err_t tcpip_inpkt(struct pbuf *p, struct netif *inp, netif_input_fn input_fn)
Definition: tcpip.c:240
err_t tcpip_callback(tcpip_callback_fn function, void *ctx)
Definition: tcpip.c:309
void tcpip_init(tcpip_init_done_fn tcpip_init_done, void *arg)
Definition: tcpip.c:602
void tcpip_callbackmsg_delete(struct tcpip_callback_msg *msg)
Definition: tcpip.c:552
err_t tcpip_input(struct pbuf *p, struct netif *inp)
Definition: tcpip.c:283
err_t tcpip_try_callback(tcpip_callback_fn function, void *ctx)
Definition: tcpip.c:345
struct tcpip_callback_msg * tcpip_callbackmsg_new(tcpip_callback_fn function, void *ctx)
Definition: tcpip.c:531