|
From: | Walter ZAMBOTTI |
Subject: | [lwip-devel] Porting with not threads! |
Date: | Wed, 3 Mar 2021 14:57:23 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
I might be using an out of date porting guide referenced here :
https://lwip.fandom.com/wiki/Porting_for_an_OS_1.4.0
Is there is a more up to date porting guide?
Anyway it states for threads:
Threads are not required for lwIP, although lwIP is written to use them efficiently. The following function will be used to instantiate a thread for lwIP:
sys_thread_t sys_thread_new(char *name, void (*
thread)(void *arg), void *arg, int stacksize, int prio)
:
name
is the thread name. thread(arg)
is the call made as the thread's entry point. stacksize
is the recommanded stack size for this thread. prio
is the priority that lwIP asks for. Stack size(s) and
priority(ies) have to be are defined in lwipopts.h, and so are completely
customizable for your systemHowever there is no mention as what is meant to be configured in order to either use threads or not to use threads.
I assume there is a define that needs to be changed somewhere!
Walter
[Prev in Thread] | Current Thread | [Next in Thread] |