60#if LWIP_TCPIP_CORE_LOCKING
62sys_mutex_t lock_tcpip_core;
97 msg->msg.apimsg->function(&(
msg->msg.apimsg->msg));
101#if !LWIP_TCPIP_CORE_LOCKING_INPUT
106 ethernet_input(
msg->msg.inp.p,
msg->msg.inp.netif);
117 case TCPIP_MSG_NETIFAPI:
119 msg->msg.netifapimsg->function(&(
msg->msg.netifapimsg->msg));
123#if LWIP_TCPIP_TIMEOUT
124 case TCPIP_MSG_TIMEOUT:
129 case TCPIP_MSG_UNTIMEOUT:
138 msg->msg.cb.function(
msg->msg.cb.ctx);
144 msg->msg.cb.function(
msg->msg.cb.ctx);
166#if LWIP_TCPIP_CORE_LOCKING_INPUT
240#if LWIP_TCPIP_TIMEOUT
260 msg->type = TCPIP_MSG_TIMEOUT;
261 msg->msg.tmo.msecs = msecs;
289 msg->type = TCPIP_MSG_UNTIMEOUT;
309tcpip_apimsg(
struct api_msg *apimsg)
318 msg.type = TCPIP_MSG_API;
319 msg.msg.apimsg = apimsg;
322 return apimsg->msg.err;
327#if LWIP_TCPIP_CORE_LOCKING
337tcpip_apimsg_lock(
struct api_msg *apimsg)
345 apimsg->function(&(apimsg->msg));
347 return apimsg->msg.err;
354#if !LWIP_TCPIP_CORE_LOCKING
363tcpip_netifapi(
struct netifapi_msg* netifapimsg)
370 netifapimsg->msg.err =
err;
374 msg.type = TCPIP_MSG_NETIFAPI;
375 msg.msg.netifapimsg = netifapimsg;
379 return netifapimsg->msg.err;
393tcpip_netifapi_lock(
struct netifapi_msg* netifapimsg)
396 netifapimsg->function(&(netifapimsg->msg));
398 return netifapimsg->msg.err;
420 return (
struct tcpip_callback_msg*)
msg;
465 LWIP_ASSERT(
"failed to create tcpip_thread mbox", 0);
467#if LWIP_TCPIP_CORE_LOCKING
469 LWIP_ASSERT(
"failed to create lock_tcpip_core", 0);
#define LWIP_UNUSED_ARG(x)
#define mem_free(ptr, bsize)
#define LWIP_DEBUGF(debug, message)
#define LWIP_ASSERT(message, assertion)
@ TCPIP_MSG_CALLBACK_STATIC
void(* tcpip_callback_fn)(void *ctx)
#define LOCK_TCPIP_CORE()
void(* tcpip_init_done_fn)(void *arg)
#define LWIP_TCPIP_THREAD_ALIVE()
#define UNLOCK_TCPIP_CORE()
GLdouble GLdouble GLdouble GLdouble q
GLfloat GLfloat GLfloat GLfloat h
err_t ip_input(struct pbuf *p, struct netif *inp)
void * memp_malloc(memp_t type)
void memp_free(memp_t type, void *mem)
#define NETIF_FLAG_ETHERNET
#define NETIF_FLAG_ETHARP
#define TCPIP_THREAD_NAME
#define TCPIP_THREAD_PRIO
#define TCPIP_THREAD_STACKSIZE
u8_t pbuf_free(struct pbuf *p)
tcpip_callback_fn function
struct tcpip_msg::@1050::@1051 inp
err_t sys_mutex_new(sys_mutex_t *mutex)
#define sys_sem_wait(sem)
sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stacksize, int prio)
void sys_sem_free(sys_sem_t *sem)
int sys_mbox_valid(sys_mbox_t *mbox)
u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout)
void sys_mbox_post(sys_mbox_t *mbox, void *msg)
err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg)
err_t sys_mbox_new(sys_mbox_t *mbox, int size)
err_t sys_sem_new(sys_sem_t *sem, u8_t count)
struct tcpip_callback_msg * tcpip_callbackmsg_new(tcpip_callback_fn function, void *ctx)
void tcpip_init(tcpip_init_done_fn initfunc, void *arg)
err_t mem_free_callback(void *m)
err_t pbuf_free_callback(struct pbuf *p)
static void tcpip_thread(void *arg)
err_t tcpip_callback_with_block(tcpip_callback_fn function, void *ctx, u8_t block)
static tcpip_init_done_fn tcpip_init_done
void tcpip_callbackmsg_delete(struct tcpip_callback_msg *msg)
err_t tcpip_trycallback(struct tcpip_callback_msg *msg)
static void pbuf_free_int(void *p)
err_t tcpip_input(struct pbuf *p, struct netif *inp)
static void * tcpip_init_done_arg
void(* sys_timeout_handler)(void *arg)
void sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg)
void sys_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg)
void sys_untimeout(sys_timeout_handler handler, void *arg)
static unsigned int block