Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: utility/mempool_conf.h
- Revision:
- 1:01c2344f98a3
- Parent:
- 0:5350a66d5279
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/utility/mempool_conf.h Thu Nov 20 21:26:54 2014 +0000
@@ -0,0 +1,25 @@
+#ifndef MEMPOOLCONF_H
+ #define MEMPOOLCONF_H
+ #include "uipethernet-conf.h"
+extern "C"
+{
+ #include "uipopt.h"
+}
+ #include <inttypes.h>
+
+typedef uint16_t memaddress;
+typedef uint8_t memhandle;
+
+ #if UIP_SOCKET_NUMPACKETS and UIP_CONNS
+ #define NUM_TCP_MEMBLOCKS (UIP_SOCKET_NUMPACKETS * 2) * UIP_CONNS
+ #else
+ #define NUM_TCP_MEMBLOCKS 0
+ #endif
+ #if UIP_UDP_NUMPACKETS and UIP_UDP_CONNS
+ #define NUM_UDP_MEMBLOCKS (UIP_UDP_NUMPACKETS + 1) * UIP_UDP_CONNS
+ #else
+ #define NUM_UDP_MEMBLOCKS 0
+ #endif
+ #define NUM_MEMBLOCKS (NUM_TCP_MEMBLOCKS + NUM_UDP_MEMBLOCKS)
+ #define MEMBLOCK_MV
+#endif