portdio.c File Reference

Go to the source code of this file.

Defines

#define MY_MAC   {0x00,0x06,0x98,0x20,0x00,0x00}
#define MY_IP   "192.168.192.100"
#define MY_MASK   "255.255.255.0"
#define MY_PORT   12345

Functions

void ProcessRequests (FILE *stream)
void init_dio (void)
void service (void)
void service_thread (void *arg)
int main (void)


Define Documentation

#define MY_MAC   {0x00,0x06,0x98,0x20,0x00,0x00}

Definition at line 99 of file portdio.c.

#define MY_IP   "192.168.192.100"

Definition at line 100 of file portdio.c.

#define MY_MASK   "255.255.255.0"

Definition at line 101 of file portdio.c.

#define MY_PORT   12345

Examples:
portdio/portdio.c.

Definition at line 102 of file portdio.c.

Referenced by service().


Function Documentation

void ProcessRequests ( FILE stream  ) 

Examples:
portdio/portdio.c, pppc/pppc.c, and tcps/tcps.c.

Definition at line 220 of file portdio.c.

References fflush(), fgets(), fprintf(), fputs(), GpioPinSetHigh(), GpioPinSetLow(), NutHeapAvailable, NutThreadYield(), strchr(), strlen(), and strncmp().

Referenced by main(), and service().

void init_dio ( void   ) 

Examples:
portdio/portdio.c.

Definition at line 369 of file portdio.c.

References GPIO_CFG_OUTPUT, GPIO_CFG_PULLUP, GpioPinConfigSet(), and GpioPinSetLow().

Referenced by main().

void service ( void   ) 

Examples:
portdio/portdio.c.

Definition at line 408 of file portdio.c.

References _fdopen(), fclose(), MY_PORT, NutTcpAccept(), NutTcpCloseSocket(), NutTcpCreateSocket(), and ProcessRequests().

Referenced by main(), and service_thread().

void service_thread ( void *  arg  ) 

Examples:
portdio/portdio.c.

Definition at line 449 of file portdio.c.

References service().

Referenced by main().

int main ( void   ) 

Definition at line 460 of file portdio.c.

References DEV_ETHER, DEV_ETHER_NAME, inet_addr(), init_dio(), MY_IP, MY_MAC, MY_MASK, NutDhcpIfConfig(), NutNetIfConfig(), NutRegisterDevice(), NutThreadCreate(), service(), and service_thread().


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/