File nut/app/portdio/portdio.c


Included Files


Preprocessor definitions

#define MY_MAC

#define MY_IP "192.168.192.100"

#define MY_MASK "255.255.255.0"

#define MY_PORT 12345

#define INBANK 2

#define INPIN1 0

#define INPIN2 1

#define INPIN3 2

#define INPIN4 3

#define OUTBANK 2

#define OUTPIN1 4

#define OUTPIN2 5

#define OUTPIN3 6

#define OUTPIN4 7


Global Function NutAppMain()

int NutAppMain ( void )
Calls: init_dio() nut/app/portdio/portdio.c
  service() nut/app/portdio/portdio.c
  NutDhcpIfConfig(), NutNetIfConfig(), NutRegisterDevice(), NutThreadCreate(), inet_addr()
References Functions: service_thread() nut/app/portdio/portdio.c

Global Function ProcessRequests()

void ProcessRequests ( FILE* stream )
Calls: PortStatus() nut/app/portdio/portdio.c
  NutHeapRootAvailable(), NutThreadYield(), fflush(), fgets(), fprintf(), fputs(), strchr(), strlen(), strncmp()
Called by: service() nut/app/portdio/portdio.c

Global Function init_dio()

void init_dio ( void )
Calls: GpioPinConfigSet()
Called by: NutAppMain() nut/app/portdio/portdio.c

Global Function service()

void service ( void )
Calls: ProcessRequests() nut/app/portdio/portdio.c
  NutTcpAccept(), NutTcpCloseSocket(), NutTcpCreateSocket(), _fdopen(), fclose()
Called by: NutAppMain() nut/app/portdio/portdio.c
  service_thread() nut/app/portdio/portdio.c

Global Function service_thread()

void service_thread ( void* arg )
Prototyped in: nut/app/portdio/portdio.c
Calls: service() nut/app/portdio/portdio.c
Used in: NutAppMain() nut/app/portdio/portdio.c

Local Function PortStatus()

static int PortStatus ( void )
Called by: ProcessRequests() nut/app/portdio/portdio.c