Re: [lwip-users] sys_mbox_post

2010-04-05 Thread goldsi...@gmx.de
Lorenzo Tessiore wrote: err_t tcpip_apimsg(struct api_msg *apimsg) { struct tcpip_msg msg; if (mbox != SYS_MBOX_NULL) { msg.type = TCPIP_MSG_API; msg.msg.apimsg = apimsg; sys_mbox_post(mbox, &msg); sys_arch_sem_wait(apimsg->msg.conn->op_completed, 0); The above line w

[lwip-users] sys_mbox_post

2010-04-05 Thread Lorenzo Tessiore
Hello, I do not understand, or there is a problem, with the semantic of void sys_mbox_post(sys_mbox_t mbox, void *msg). sys_mbox_post(...) is called by, among several places, err_t tcpip_timeout(u32_t msecs, sys_timeout_handler h, void *arg) { struct tcpip_msg *msg; if (mbox != SYS_MBOX_N

[lwip-users] lwip-users@nongnu.org

2010-04-05 Thread Robert Schilling
Hi guys, I'm using a board based on the LPC1768 with Ethernet in combination with KEIL as IDE.For this reason I used the LPC1766 example with lwIP Stack (http://www.coocox.com/EXAMPLE/NXP_LPC1766_ARMCC.htm) . I compiled this for my host