]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/api/tcpip.c
Use FreeRTOS heap instead of LwIP heap
[pes-rpp/rpp-lwip.git] / src / api / tcpip.c
index ef6fed5fc26b93837744c10c6b55fd422c179063..4fdd7f1f6a7b94b21e4f310074e9f58512f2120c 100644 (file)
@@ -326,30 +326,6 @@ tcpip_apimsg(struct api_msg *apimsg)
   return ERR_VAL;
 }
 
-#if LWIP_TCPIP_CORE_LOCKING
-/**
- * Call the lower part of a netconn_* function
- * This function has exclusive access to lwIP core code by locking it
- * before the function is called.
- *
- * @param apimsg a struct containing the function to call and its parameters
- * @return ERR_OK (only for compatibility fo tcpip_apimsg())
- */
-err_t
-tcpip_apimsg_lock(struct api_msg *apimsg)
-{
-#ifdef LWIP_DEBUG
-  /* catch functions that don't set err */
-  apimsg->msg.err = ERR_VAL;
-#endif
-
-  LOCK_TCPIP_CORE();
-  apimsg->function(&(apimsg->msg));
-  UNLOCK_TCPIP_CORE();
-  return apimsg->msg.err;
-
-}
-#endif /* LWIP_TCPIP_CORE_LOCKING */
 #endif /* LWIP_NETCONN */
 
 #if LWIP_NETIF_API
@@ -510,7 +486,7 @@ pbuf_free_callback(struct pbuf *p)
 err_t
 mem_free_callback(void *m)
 {
-  return tcpip_callback_with_block(mem_free, m, 0);
+  return tcpip_callback_with_block(vPortFree, m, 0);
 }
 
 #endif /* !NO_SYS */