From 13140f922f436413b3976688bd7d937e8060106f Mon Sep 17 00:00:00 2001 From: Matthias Kovatsch Date: Wed, 7 Dec 2011 20:03:54 +0100 Subject: [PATCH] Disabled RDC for CoAP demo purposes due to changing memory requirements of core system. --- examples/er-rest-example/project-conf.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/examples/er-rest-example/project-conf.h b/examples/er-rest-example/project-conf.h index 1672795d7..017f80701 100644 --- a/examples/er-rest-example/project-conf.h +++ b/examples/er-rest-example/project-conf.h @@ -34,23 +34,28 @@ #define SICSLOWPAN_CONF_FRAG 1 -/* Save some memory for the sky platform */ +/* Disabling RDC for demo purposes. Core updates often require more memory. */ +/* For projects, optimize memory and enable RDC again. */ +#undef NETSTACK_CONF_RDC +#define NETSTACK_CONF_RDC nullrdc_driver + +/* Save some memory for the sky platform. */ #undef UIP_CONF_DS6_NBR_NBU #define UIP_CONF_DS6_NBR_NBU 10 #undef UIP_CONF_DS6_ROUTE_NBU #define UIP_CONF_DS6_ROUTE_NBU 10 -/* Increase rpl-border-router IP-buffer when using 128 */ +/* Increase rpl-border-router IP-buffer when using 128. */ #ifndef REST_MAX_CHUNK_SIZE #define REST_MAX_CHUNK_SIZE 64 #endif -/* Decrease to 2 if no space left for stack when using 128-byte chunks */ +/* Multiplies with chunk size, be aware of memory constraints. */ #ifndef COAP_MAX_OPEN_TRANSACTIONS #define COAP_MAX_OPEN_TRANSACTIONS 4 #endif -/* Must be <= open transaction number */ +/* Must be <= open transaction number. */ #ifndef COAP_MAX_OBSERVERS #define COAP_MAX_OBSERVERS COAP_MAX_OPEN_TRANSACTIONS #endif