diff --git a/cpu/6502/6502def.h b/cpu/6502/6502def.h index dc1b9c4fb..29c239293 100644 --- a/cpu/6502/6502def.h +++ b/cpu/6502/6502def.h @@ -30,7 +30,7 @@ * * Author: Oliver Schmidt * - * @(#)$Id: 6502def.h,v 1.22 2010/04/05 15:17:22 oliverschmidt Exp $ + * @(#)$Id: 6502def.h,v 1.23 2010/04/11 20:47:16 oliverschmidt Exp $ */ #ifndef __6502DEF_H__ @@ -72,6 +72,18 @@ typedef unsigned short uip_stats_t; #define LOADER_CONF_ARCH "lib/unload.h" +#if MTU_SIZE +#define UIP_CONF_BUFFER_SIZE (UIP_LLH_LEN + MTU_SIZE) +#else /* MTU_SIZE */ +#define UIP_CONF_BUFFER_SIZE (UIP_LLH_LEN + 1500) +#endif /* MTU_SIZE */ + +#if CONNECTIONS +#define UIP_CONF_MAX_CONNECTIONS CONNECTIONS +#else /* CONNECTIONS */ +#define UIP_CONF_MAX_CONNECTIONS 10 +#endif /* CONNECTIONS */ + #if WITH_LOGGING #define LOG_CONF_ENABLED 1 #define UIP_CONF_LOGGING 1 @@ -80,12 +92,6 @@ typedef unsigned short uip_stats_t; #define UIP_CONF_LOGGING 0 #endif /* WITH_LOGGING */ -#if MTU_SIZE -#define UIP_CONF_BUFFER_SIZE (UIP_LLH_LEN + MTU_SIZE) -#else /* MTU_SIZE */ -#define UIP_CONF_BUFFER_SIZE (UIP_LLH_LEN + 1500) -#endif /* MTU_SIZE */ - #if WITH_BOOST #define UIP_CONF_TCP_SPLIT 1 #else /* WITH_BOOST */ diff --git a/cpu/6502/README b/cpu/6502/README index ae314d0ee..eb15411a0 100644 --- a/cpu/6502/README +++ b/cpu/6502/README @@ -37,6 +37,10 @@ MTU_SIZE - Default: 1500 - Purpose: Set the Maximum Transfer Unit size. +CONNECTIONS +- Default: 10 +- Purpose: Set the maximum number of concurrent TCP connections. + WITH_LOGGING - Default: 0 - Purpose: Have log_message() and UIP_LOG() write messages to the screen.