From 70e9f7662320fe1b910e837a4e7d5c462dd15f04 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Mon, 12 Sep 2016 12:11:11 +0800 Subject: [PATCH] - Allocate 1k bytes to CC2538 stack (#502) - Free 2k bytes RAM for other's use via reducing the default size of message buffer --- examples/platforms/cc2538/startup-gcc.c | 2 +- src/core/openthread-core-default-config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/platforms/cc2538/startup-gcc.c b/examples/platforms/cc2538/startup-gcc.c index a56768f16..ba6e55a07 100644 --- a/examples/platforms/cc2538/startup-gcc.c +++ b/examples/platforms/cc2538/startup-gcc.c @@ -59,7 +59,7 @@ extern void RFCoreRxTxIntHandler(void); extern void RFCoreErrIntHandler(void); extern void main(void); -static uint64_t stack[256] __attribute__((section(".stack"))); +static uint64_t stack[384] __attribute__((section(".stack"))); __attribute__((section(".vectors"), used)) void (*const vectors[])(void) = diff --git a/src/core/openthread-core-default-config.h b/src/core/openthread-core-default-config.h index e41f3b6c4..b69ce15d3 100644 --- a/src/core/openthread-core-default-config.h +++ b/src/core/openthread-core-default-config.h @@ -42,7 +42,7 @@ * */ #ifndef OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS -#define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS 64 +#define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS 48 #endif // OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS /**