Modified project setup for er-rest-example and rest-example to use

nullrdc and nullmac to reduce the code size. This allows the examples
to compile on Tmote Sky again.
This commit is contained in:
Niclas Finne 2014-04-15 22:59:20 +02:00
parent 0327623ae1
commit ceb868d934
2 changed files with 15 additions and 2 deletions

View file

@ -35,11 +35,15 @@
/* Some platforms have weird includes. */ /* Some platforms have weird includes. */
#undef IEEE802154_CONF_PANID #undef IEEE802154_CONF_PANID
/* Disabling RDC for demo purposes. Core updates often require more memory. */ /* Disabling RDC and CSMA for demo purposes. Core updates often
/* For projects, optimize memory and enable RDC again. */ require more memory. */
/* For projects, optimize memory and enable RDC and CSMA again. */
#undef NETSTACK_CONF_RDC #undef NETSTACK_CONF_RDC
#define NETSTACK_CONF_RDC nullrdc_driver #define NETSTACK_CONF_RDC nullrdc_driver
#undef NETSTACK_CONF_MAC
#define NETSTACK_CONF_MAC nullmac_driver
/* Increase rpl-border-router IP-buffer when using more than 64. */ /* Increase rpl-border-router IP-buffer when using more than 64. */
#undef REST_MAX_CHUNK_SIZE #undef REST_MAX_CHUNK_SIZE
#define REST_MAX_CHUNK_SIZE 64 #define REST_MAX_CHUNK_SIZE 64

View file

@ -32,6 +32,15 @@
#ifndef PROJECT_RPL_WEB_CONF_H_ #ifndef PROJECT_RPL_WEB_CONF_H_
#define PROJECT_RPL_WEB_CONF_H_ #define PROJECT_RPL_WEB_CONF_H_
/* Disabling RDC and CSMA for demo purposes. Core updates often
require more memory. */
/* For projects, optimize memory and enable RDC and CSMA again. */
#undef NETSTACK_CONF_RDC
#define NETSTACK_CONF_RDC nullrdc_driver
#undef NETSTACK_CONF_MAC
#define NETSTACK_CONF_MAC nullmac_driver
#ifndef QUEUEBUF_CONF_NUM #ifndef QUEUEBUF_CONF_NUM
#define QUEUEBUF_CONF_NUM 6 #define QUEUEBUF_CONF_NUM 6
#endif #endif