what I do normaly:
1- the ISR post the comming packets to a Queue -OSQPost(..)-
2- create a task which handle the comming packets
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ?????
Sent: Monday, June 26, 2006 7:40 AM
To: [email protected]
Subject: [lwip-users] Lwip + ucosII porting problem, help me!

hi,
 
  I ported lwip + ucosII to STR710FZ2(ARM7TDMI),ucosII works fine, but Lwip has a problem I can not figure out.
 
  When a pocket received, The NIC interrupt call tcpip_input() to creat a message. then tcpip_input() need to call memp_malloc() to create a new message, memp_malloc() need to call OSSemPend() to wait for a semaphore.
 
  The problem is OSSemPend() can not be called in a interrupt. Is there anyone has the same question? How can I get through it?
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to