/* Posts the "msg" to the mailbox. This function have to block until the "msg" is really posted.  */
void sys_mbox_post(sys_mbox_t *mbox, void *msg)
/* Posts the "msg" to the mailbox. This function have to block until the "msg" is really posted.  */
void sys_mbox_post(sys_mbox_t *mbox, void *msg)
{
    u8_t     err;
    u8_t  i=0; 
    if( msg == NULL ) 
        msg = (void*)null_pointer;
    while (i < 10){
        err = tls_os_queue_send(*mbox, msg, 0);
        if(err == TLS_OS_SUCCESS)
            break;
        i++;
        tls_os_time_delay(1);
    }
    LWIP_ASSERT( "sys_mbox_post error!\n", i !=10 );      
}