From 0455755296b27440e68cad1ca43c342d9a452f88 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 31 May 2016 17:27:21 +0100 Subject: cc3200: Use xTaskCreateStatic instead of osi_TaskCreate. This allows to statically allocate the TCB (thread control block) and thread stack in the BSS segment, reducing the need for dynamic memory allocation. --- cc3200/serverstask.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cc3200/serverstask.c') diff --git a/cc3200/serverstask.c b/cc3200/serverstask.c index 82c43bf8e..8bac3a756 100644 --- a/cc3200/serverstask.c +++ b/cc3200/serverstask.c @@ -67,6 +67,8 @@ static volatile bool sleep_sockets = false; /****************************************************************************** DECLARE PUBLIC DATA ******************************************************************************/ +StaticTask_t svTaskTCB; +StackType_t svTaskStack[SERVERS_STACK_LEN] __attribute__((aligned (8))); char servers_user[SERVERS_USER_PASS_LEN_MAX + 1]; char servers_pass[SERVERS_USER_PASS_LEN_MAX + 1]; -- cgit v1.2.3