OpenCores

Web server

Back to bugtracker overview.

Information:
Type :: REQUEST
Status :: CLOSED
Assigned to :: Steve, Rhoads

Description:
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

Comments:

Rhoads, Steve Jul 12, 2006
FrameSendFunction is a function pointer that you set when you call IPInit().
Meziti ElIbrahimi, Abdallah Jul 11, 2006
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, Steve Jul 10, 2006
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?

Post a comment:
Login to post comments!

Back to bugtracker overview.

© copyright 1999-2012 OpenCores.org, equivalent to ORSoC AB, all rights reserved. OpenCores®, registered trademark.