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" |
Functions | |
void | ProcessRequests (FILE *stream) |
void | init_dio (void) |
void | service (void) |
void | service_thread (void *arg) |
int | main (void) |
void ProcessRequests | ( | FILE * | stream | ) |
Definition at line 114 of file portdio.c.
References DEADBEEF, fflush(), fgets(), fprintf(), fputs(), inb, NutHeapAvailable(), nutThreadList, NutThreadYield(), nutTimerList, outb, strchr(), strlen(), strncmp(), _NUTTHREADINFO::td_memory, _NUTTHREADINFO::td_name, _NUTTHREADINFO::td_next, _NUTTHREADINFO::td_priority, _NUTTHREADINFO::td_sp, _NUTTHREADINFO::td_state, _NUTTHREADINFO::td_timer, TDS_READY, TDS_RUNNING, TDS_SLEEP, TDS_TERM, _NUTTIMERINFO::tn_next, _NUTTIMERINFO::tn_ticks, and _NUTTIMERINFO::tn_ticks_left.
void init_dio | ( | void | ) |
Definition at line 304 of file portdio.c.
References outb.
Referenced by main().
void service | ( | void | ) |
Definition at line 319 of file portdio.c.
References _fdopen(), fclose(), NutTcpAccept(), NutTcpCloseSocket(), NutTcpCreateSocket(), and ProcessRequests().
Referenced by main(), and service_thread().
void service_thread | ( | void * | arg | ) |
Definition at line 361 of file portdio.c.
References service().
Referenced by main().
int main | ( | void | ) |
Definition at line 372 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().