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) |
int | main (void) |
#define MY_PORT 12345 |
void ProcessRequests | ( | FILE * | stream | ) |
Definition at line 182 of file portdio.c.
References fflush(), fgets(), fprintf(), fputs(), GpioPinSetHigh(), GpioPinSetLow(), NutHeapAvailable, NutThreadYield(), strchr(), strlen(), and strncmp().
Referenced by main().
void init_dio | ( | void | ) |
Definition at line 331 of file portdio.c.
References GPIO_CFG_OUTPUT, GPIO_CFG_PULLUP, GpioPinConfigSet(), and GpioPinSetLow().
Referenced by main().
int main | ( | void | ) |
Definition at line 426 of file portdio.c.
References DEV_ETHER, DEV_ETHER_NAME, inet_addr(), init_dio(), MY_IP, MY_MAC, MY_MASK, NutDhcpIfConfig(), NutNetIfConfig(), NutRegisterDevice(), and NutThreadCreate().