summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/serverstask.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-31 17:27:21 +0100
committerDamien George <damien.p.george@gmail.com>2016-06-28 11:28:52 +0100
commit0455755296b27440e68cad1ca43c342d9a452f88 (patch)
treeaa8451960fc94ac3b3bf07ad636b00d97c3ca15a /cc3200/serverstask.c
parent77e37ff98bec1ccf6af6edf3efcad26b54da0c47 (diff)
downloadmicropython-0455755296b27440e68cad1ca43c342d9a452f88.tar.gz
micropython-0455755296b27440e68cad1ca43c342d9a452f88.zip
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.
Diffstat (limited to 'cc3200/serverstask.c')
-rw-r--r--cc3200/serverstask.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc3200/serverstask.c b/cc3200/serverstask.c
index 82c43bf8e0..8bac3a756a 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];