OpenCores
Issue List
Web server #3
Closed ocghost opened this issue over 17 years ago
ocghost commented over 17 years ago

Hi,

Thank you for your work.

How can I introduce the Web serveur in a project? compilation...

Is the UART replacing the Mac ethernet controler?

In this case what I have to do modifie for using a Mac controler? software

rhoads commented over 17 years ago

The simplest way to use the TCP/IP protocol stack is in single threaded mode. Call the function

void IPInit(IPFuncPtr FrameSendFunction)

With the name of the function that the TCP/IP protocol stack should call when it wants to send an Ethernet frame. When an Ethernet frame is received, call

int IPProcessEthernetPacket(IPFrame *frameIn)

to let the TCP/IP protocol stack process it.

As you noted, the UART is currently used to send and received the Ethernet packets. Using the functions above should permit a MAC Ethernet controller so be used instead.

To use the TCP/IP protocol stack in a multi-threaded mode, call IPInit(NULL). Look at uart.c to see how Ethernet packets are received and send. When an Ethernet packet is received from the MAC, call OS_MQueueSend(UartPacketMQueue, message). When Ethernet packets need to be transmitted, the TCP/IP stack will call UartPacketSend(). The MAC driver should then call OS_MQueueSend(UartPacketMQueue, message) when the Ethernet packet has been sent.

Did I answer the question?

ocghost commented over 17 years ago

Ok for the moment, until I developp a driver for the Ethernet MAC that I plan to use.

Excuse me but, where is the FrameSendFunction? Thank you

rhoads commented over 17 years ago

FrameSendFunction is a function pointer that you set when you call IPInit().

rhoads closed this over 17 years ago
rhoads was assigned over 17 years ago
ocghost commented almost 17 years ago

Ma Nishma?

ocghost commented almost 17 years ago

Shalom

ocghost commented almost 17 years ago

Yep, I think its right.

ocghost commented almost 17 years ago

I think you are wrong.

ocghost commented almost 17 years ago

Not bad man! Look what i founf hier!!!!!

  • ????? ????? ??? ?????? ?? ????? - ????? ????? ??? ?????? ?? ????? - ????? ????? ??? ?????? ?? ????? - ????? ????? ??? ?????? ?? ?????
ocghost commented almost 17 years ago

I try it

ocghost commented almost 17 years ago

MToik

leeguochuan commented almost 11 years ago

Type your text here

leeguochuan commented almost 11 years ago

You can use HTML-syntax in your message

leeguochuan commented almost 11 years ago

Type your text here


Assignee
rhoads
Labels
Request