|
From: | Michael Steinberg |
Subject: | Re: [lwip-users] tcpip thread / no_sys |
Date: | Wed, 5 Aug 2015 00:44:42 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
Hello Robert,
thanks for your reply! Well, currently I'm already using the raw api and do the necessary thread switches "on my own" (just like the netconn adapter api does it really - by posted callbacks to the tcpip thread. but netconn's abilities are only a subset of functionality of the raw api, so I had to go this way, can't remember the exact reason just now, sorry). So the next step in my eyes is to replace the tcpip-thread alltogether with my own, so I can keep some services which run along the netcode constantly anyways from having to execute these thread boundary hops all the time (a, it's just a waste of cycles, but more importantly, b - less code noise). This includes most importantly my packet delivery code, which is notified from the dma isr. This way I'd have all of this nice and clean in one single thread and less complications. So my plans are to run my thread (which really only replaces the tcpip thread and everybody from outside must go through this thread just like netconn does it with the normal tcpip thread) and use the NO_SYS "api" to run the lwip stack from this thread (and only from this thread). Does this make sense? That being said: When I had a walk I had the idea to at least use my own thread-timer code to only notify lwip every ~100ms that it should check its timers (I need to poll the PHY's link status anyways every so often, because the designers of my board felt like they could save on the PHY interrupt line). Kind Regards, Michael Am 05.08.2015 um 00:28 schrieb Robert Deschambault:
|
[Prev in Thread] | Current Thread | [Next in Thread] |