32 #ifndef __LWIP_TCPIP_H__ 33 #define __LWIP_TCPIP_H__ 53 #ifndef LWIP_TCPIP_THREAD_ALIVE 54 #define LWIP_TCPIP_THREAD_ALIVE() 57 #if LWIP_TCPIP_CORE_LOCKING 59 extern sys_mutex_t lock_tcpip_core;
60 #define LOCK_TCPIP_CORE() sys_mutex_lock(&lock_tcpip_core) 61 #define UNLOCK_TCPIP_CORE() sys_mutex_unlock(&lock_tcpip_core) 62 #define TCPIP_APIMSG(m) tcpip_apimsg_lock(m) 63 #define TCPIP_APIMSG_ACK(m) 64 #define TCPIP_NETIFAPI(m) tcpip_netifapi_lock(m) 65 #define TCPIP_NETIFAPI_ACK(m) 67 #define LOCK_TCPIP_CORE() 68 #define UNLOCK_TCPIP_CORE() 69 #define TCPIP_APIMSG(m) tcpip_apimsg(m) 70 #define TCPIP_APIMSG_ACK(m) sys_sem_signal(&m->conn->op_completed) 71 #define TCPIP_NETIFAPI(m) tcpip_netifapi(m) 72 #define TCPIP_NETIFAPI_ACK(m) sys_sem_signal(&m->sem) 83 err_t tcpip_apimsg(
struct api_msg *apimsg);
84 #if LWIP_TCPIP_CORE_LOCKING 85 err_t tcpip_apimsg_lock(
struct api_msg *apimsg);
92 err_t tcpip_netifapi(
struct netifapi_msg *netifapimsg);
93 #if LWIP_TCPIP_CORE_LOCKING 94 err_t tcpip_netifapi_lock(
struct netifapi_msg *netifapimsg);
99 #define tcpip_callback(f, ctx) tcpip_callback_with_block(f, ctx, 1) 105 #if LWIP_TCPIP_TIMEOUT 118 #if LWIP_TCPIP_TIMEOUT 130 struct api_msg *apimsg;
133 struct netifapi_msg *netifapimsg;
143 #if LWIP_TCPIP_TIMEOUT
void(* tcpip_init_done_fn)(void *arg)
void(* tcpip_callback_fn)(void *ctx)
void(* sys_timeout_handler)(void *arg)
err_t mem_free_callback(void *m)
err_t tcpip_callback_with_block(tcpip_callback_fn function, void *ctx, u8_t block)
struct tcpip_msg::@2::@4 cb
struct tcpip_msg::@2::@3 inp
err_t tcpip_input(struct pbuf *p, struct netif *inp)
static tcpip_init_done_fn tcpip_init_done
void tcpip_init(tcpip_init_done_fn tcpip_init_done, void *arg)
err_t pbuf_free_callback(struct pbuf *p)