#include <core/system.h>#include <core/thread.h>#include <core/device.h>#include <net/netif.h>#include <net/socket.h>
Go to the source code of this file.
Functions | |
| __VOID | threadTest1 (__VOID) |
| __VOID | threadTest2 (__VOID) |
| __VOID | appEntry (__VOID) |
| Application entry point. | |
| int | main (void) |
| Program entry point. | |
Variables | |
| __STATIC __PTERMINAL | appTerm |
| __VOID threadTest1 | ( | __VOID | ) |
Definition at line 12 of file ethtest/main.c.
{
__PDEVICE eth;
__PNETIF ethif;
__PSOCKET sock;
eth = __deviceFind("eth1");
ethif = __netifInit(__NETIF_ETH, eth, __NULL, __NULL, __NULL);
if (ethif)
{
sock = __socketCreate(__SOCK_TYPE_UDP, 6000);
appTerm = __terminalCreate("udpterm", sock, sock, 200, "udpterm> ", __TERMINAL_DEBUG_COMMANDS);
__terminalStart(appTerm);
}
for (;;)
{
__threadSleep(1);
}
}

| __VOID threadTest2 | ( | __VOID | ) |
Definition at line 37 of file ethtest/main.c.
{
for (;;)
{
__threadSleep(1);
}
}

Application entry point.
Definition at line 48 of file ethtest/main.c.
{
__threadCreate("test1", threadTest1, 80, 1024, 1, __NULL);
__threadCreate("test2", threadTest2, 81, 512, 1, __NULL);
}

| int main | ( | void | ) |
Program entry point.
Definition at line 57 of file ethtest/main.c.
{
__systemInit(appEntry);
return 0;
}

Definition at line 7 of file ethtest/main.c.