Fork for fixes
Diff: utility/mempool_conf.h
- Revision:
- 4:d774541a34da
- Parent:
- 3:5b17e4656dd0
- Child:
- 8:4acb22344932
--- a/utility/mempool_conf.h Sat Dec 20 11:10:40 2014 +0000 +++ b/utility/mempool_conf.h Sun Mar 08 20:26:56 2015 +0000 @@ -4,6 +4,7 @@ extern "C" { #include "uipopt.h" + #include "enc28j60.h" } #include <inttypes.h> @@ -15,11 +16,16 @@ #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 + #if UIP_UDP and UIP_UDP_CONNS + #define NUM_UDP_MEMBLOCKS 3 * UIP_UDP_CONNS #else #define NUM_UDP_MEMBLOCKS 0 #endif - #define NUM_MEMBLOCKS (NUM_TCP_MEMBLOCKS + NUM_UDP_MEMBLOCKS) - #define MEMBLOCK_MV + #define MEMPOOL_NUM_MEMBLOCKS (NUM_TCP_MEMBLOCKS + NUM_UDP_MEMBLOCKS) + #define MEMPOOL_STARTADDRESS TXSTART_INIT + 1 + #define MEMPOOL_SIZE TXSTOP_INIT - TXSTART_INIT + +void enc28J60_mempool_block_move_callback(memaddress, memaddress, memaddress); + + #define MEMPOOL_MEMBLOCK_MV(dest, src, size) enc28J60_mempool_block_move_callback(dest, src, size) #endif