Milos RTOS v0.3.4a
Real Time Operating System
ethtest/main.c File Reference
#include <core/system.h>
#include <core/thread.h>
#include <core/device.h>
#include <net/netif.h>
#include <net/socket.h>
Include dependency graph for ethtest/main.c:

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

Function Documentation

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);
    }
}

Here is the call graph for this function:

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

{
    for (;;)
    {
        __threadSleep(1);
    }
}

Here is the call graph for this function:

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);
}

Here is the call graph for this function:

int main ( void  )

Program entry point.

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

{
    __systemInit(appEntry);
    return 0;
}

Here is the call graph for this function:


Variable Documentation

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

 All Data Structures Files Functions Variables Typedefs Defines