123
uitility/mempool_conf.h@0:5350a66d5279, 2014-09-15 (annotated)
- Committer:
- hudakz
- Date:
- Mon Sep 15 11:12:30 2014 +0000
- Revision:
- 0:5350a66d5279
rev. 00
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hudakz | 0:5350a66d5279 | 1 | #ifndef MEMPOOLCONF_H |
hudakz | 0:5350a66d5279 | 2 | #define MEMPOOLCONF_H |
hudakz | 0:5350a66d5279 | 3 | #include "uipethernet-conf.h" |
hudakz | 0:5350a66d5279 | 4 | extern "C" |
hudakz | 0:5350a66d5279 | 5 | { |
hudakz | 0:5350a66d5279 | 6 | #include "uipopt.h" |
hudakz | 0:5350a66d5279 | 7 | } |
hudakz | 0:5350a66d5279 | 8 | #include <inttypes.h> |
hudakz | 0:5350a66d5279 | 9 | |
hudakz | 0:5350a66d5279 | 10 | typedef uint16_t memaddress; |
hudakz | 0:5350a66d5279 | 11 | typedef uint8_t memhandle; |
hudakz | 0:5350a66d5279 | 12 | |
hudakz | 0:5350a66d5279 | 13 | #if UIP_SOCKET_NUMPACKETS and UIP_CONNS |
hudakz | 0:5350a66d5279 | 14 | #define NUM_TCP_MEMBLOCKS (UIP_SOCKET_NUMPACKETS * 2) * UIP_CONNS |
hudakz | 0:5350a66d5279 | 15 | #else |
hudakz | 0:5350a66d5279 | 16 | #define NUM_TCP_MEMBLOCKS 0 |
hudakz | 0:5350a66d5279 | 17 | #endif |
hudakz | 0:5350a66d5279 | 18 | #if UIP_UDP_NUMPACKETS and UIP_UDP_CONNS |
hudakz | 0:5350a66d5279 | 19 | #define NUM_UDP_MEMBLOCKS (UIP_UDP_NUMPACKETS + 1) * UIP_UDP_CONNS |
hudakz | 0:5350a66d5279 | 20 | #else |
hudakz | 0:5350a66d5279 | 21 | #define NUM_UDP_MEMBLOCKS 0 |
hudakz | 0:5350a66d5279 | 22 | #endif |
hudakz | 0:5350a66d5279 | 23 | #define NUM_MEMBLOCKS (NUM_TCP_MEMBLOCKS + NUM_UDP_MEMBLOCKS) |
hudakz | 0:5350a66d5279 | 24 | #define MEMBLOCK_MV |
hudakz | 0:5350a66d5279 | 25 | #endif |