Hi,
 
I don't know your port, but there is two possibilities :
 
- your sys_arch_timeouts is able to create directly the timeouts list for the 
calling thread: in this case, you can use any function to create your thread.
 
- your sys_arch_timeouts can't do it, and will returns NULL for a thread which 
is not create by sys_new_thread: you can create your thread will any function 
IF you don't use directly or indirectly any sys_timeout()/sys_untimeout() calls 
in this thread context. Indirect calls can be sys_mssleep() & 
lwip_select()/select(), In others cases, or if you're not sure, you HAVE to use 
sys_new_thread.
 
 
If you have to implement your own sys_arch, perhaps a simple table (static or 
dynamic) indexed by any threadID is a good solution to implement 
sys_arch_timeouts(). In some OS, but I don't know FreeRTOS, it's possible to 
have a "Thread Local Storage". If you get a such possibility, you can use it.
 
 
  
====================================
Frédéric BERNON 
HYMATOM SA 
Chef de projet informatique 
Microsoft Certified Professional 
Tél. : +33 (0)4-67-87-61-10 
Fax. : +33 (0)4-67-70-85-44 
Email : [EMAIL PROTECTED] 
Web Site : http://www.hymatom.fr <http://www.hymatom.fr/>  
====================================
P Avant d'imprimer, penser à l'environnement
 

        -----Message d'origine-----
        De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Colin 
Stanley
        Envoyé : lundi 19 mars 2007 20:30
        À : [email protected]
        Objet : [lwip-users] Adding more applications and protocols
        
        

         

        I have the HTTP web server working well under Freertos and the SAM7X.

        My question; what is the correct way to add additional protocols (UDP) 
and apps (TFTP), and additional HTTP connections

        Should I create additional tasks using the FREERTOS calls for 
"xTaskCreate",

        or create them using the "sys_thread_new" functions within sys_arch. 
This will add an entry to the timeout table.

         

        A point in the right direction will help 

        Thanks

         

        Colin

         

<<attachment: image001.jpg>>

<<attachment: image002.jpg>>

BEGIN:VCARD
VERSION:2.1
N:BERNON;Frédéric;;M.
FN:Frédéric BERNON
ORG:HYMATOM SA;Recherche et Développement
TITLE:Chef de projet informatique
TEL;WORK;VOICE:04-67-87-61-10
TEL;WORK;FAX:04-67-70-85-44
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;23;Zone Industrielle=0D=0A175 rue de Massacan;VENDARGUES;;34740;FRANCE;
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:23=0D=0AZone Industrielle=0D=0A175 rue de Massacan=0D=0AVENDARGUES 34740=0D=
=0AFrance
URL;WORK:http://www.hymatom.fr
ROLE:Chef de projet informatique
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20020404T083210Z
END:VCARD
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to