New BOARD value option BOARD_NONE (equivelent to not specifying BOARD) which will remove all board hardware drivers which do not adversely affect the code operation (currently only the LEDs driver).
Spell-check code/comments in the Webserver/AVRISP-MKII projects.
This commit is contained in:
parent
f4f44f9fc1
commit
15f84bb8f5
87 changed files with 123 additions and 103 deletions
|
@ -50,7 +50,7 @@ void DHCPClientApp_Init(void)
|
|||
uip_ipaddr(&DHCPServerIPAddress, 255, 255, 255, 255);
|
||||
AppState->DHCPClient.Connection = uip_udp_new(&DHCPServerIPAddress, HTONS(DHCPC_SERVER_PORT));
|
||||
|
||||
/* If the connection was sucessfully created, bind it to the local DHCP client port */
|
||||
/* If the connection was successfully created, bind it to the local DHCP client port */
|
||||
if(AppState->DHCPClient.Connection != NULL)
|
||||
{
|
||||
uip_udp_bind(AppState->DHCPClient.Connection, HTONS(DHCPC_CLIENT_PORT));
|
||||
|
@ -240,7 +240,7 @@ uint8_t DHCPClientApp_SetOption(uint8_t* DHCPOptionList, uint8_t Option, uint8_t
|
|||
*/
|
||||
bool DHCPClientApp_GetOption(uint8_t* DHCPOptionList, uint8_t Option, void* Destination)
|
||||
{
|
||||
/* Look through the incomming DHCP packet's options list for the requested option */
|
||||
/* Look through the incoming DHCP packet's options list for the requested option */
|
||||
while (*DHCPOptionList != DHCP_OPTION_END)
|
||||
{
|
||||
/* Check if the current DHCP option in the packet is the one requested */
|
||||
|
@ -249,7 +249,7 @@ bool DHCPClientApp_GetOption(uint8_t* DHCPOptionList, uint8_t Option, void* Dest
|
|||
/* Copy request option's data to the destination buffer */
|
||||
memcpy(Destination, &DHCPOptionList[2], DHCPOptionList[1]);
|
||||
|
||||
/* Indicate that the requested option data was sucessfully retrieved */
|
||||
/* Indicate that the requested option data was successfully retrieved */
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -257,7 +257,7 @@ bool DHCPClientApp_GetOption(uint8_t* DHCPOptionList, uint8_t Option, void* Dest
|
|||
DHCPOptionList += (DHCPOptionList[1] + 2);
|
||||
}
|
||||
|
||||
/* Requested option not found in the incomming packet's DHCP options list */
|
||||
/* Requested option not found in the incoming packet's DHCP options list */
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -150,7 +150,7 @@ void HTTPServerApp_Callback(void)
|
|||
}
|
||||
}
|
||||
|
||||
/** HTTP Server State handler for the Request Process state. This state manages the processing of incomming HTTP
|
||||
/** HTTP Server State handler for the Request Process state. This state manages the processing of incoming HTTP
|
||||
* GET requests to the server from the receiving HTTP client.
|
||||
*/
|
||||
static void HTTPServerApp_OpenRequestedFile(void)
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
} MIME_Type_t;
|
||||
|
||||
/* Macros: */
|
||||
/** TCP listen port for incomming HTTP traffic */
|
||||
/** TCP listen port for incoming HTTP traffic */
|
||||
#define HTTP_SERVER_PORT 80
|
||||
|
||||
/* Function Prototypes: */
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
#include <uip.h>
|
||||
|
||||
/* Macros: */
|
||||
/** TCP listen port for incomming TELNET traffic */
|
||||
/** TCP listen port for incoming TELNET traffic */
|
||||
#define TELNET_SERVER_PORT 23
|
||||
|
||||
/* Enums: */
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
/** \file
|
||||
*
|
||||
* uIP Managament functions. This file contains the functions and globals needed to maintain the uIP
|
||||
* uIP Management functions. This file contains the functions and globals needed to maintain the uIP
|
||||
* stack once an RNDIS device has been attached to the system.
|
||||
*/
|
||||
|
||||
|
@ -87,7 +87,7 @@ void uIPManagement_ManageNetwork(void)
|
|||
{
|
||||
if ((USB_CurrentMode == USB_MODE_HOST) && (USB_HostState == HOST_STATE_Configured))
|
||||
{
|
||||
uIPManagement_ProcessIncommingPacket();
|
||||
uIPManagement_ProcessIncomingPacket();
|
||||
uIPManagement_ManageConnections();
|
||||
}
|
||||
}
|
||||
|
@ -123,8 +123,8 @@ void uIPManagement_UDPCallback(void)
|
|||
}
|
||||
}
|
||||
|
||||
/** Processes incomming packets to the server from the connected RNDIS device, creating responses as needed. */
|
||||
static void uIPManagement_ProcessIncommingPacket(void)
|
||||
/** Processes Incoming packets to the server from the connected RNDIS device, creating responses as needed. */
|
||||
static void uIPManagement_ProcessIncomingPacket(void)
|
||||
{
|
||||
/* If no packet received, exit processing routine */
|
||||
if (!(RNDIS_Host_IsPacketReceived(&Ethernet_RNDIS_Interface)))
|
||||
|
@ -132,7 +132,7 @@ static void uIPManagement_ProcessIncommingPacket(void)
|
|||
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_BUSY);
|
||||
|
||||
/* Read the incomming packet straight into the UIP packet buffer */
|
||||
/* Read the Incoming packet straight into the UIP packet buffer */
|
||||
RNDIS_Host_ReadPacket(&Ethernet_RNDIS_Interface, uip_buf, &uip_len);
|
||||
|
||||
/* If the packet contains an Ethernet frame, process it */
|
||||
|
@ -144,7 +144,7 @@ static void uIPManagement_ProcessIncommingPacket(void)
|
|||
/* Filter packet by MAC destination */
|
||||
uip_arp_ipin();
|
||||
|
||||
/* Process incomming packet */
|
||||
/* Process Incoming packet */
|
||||
uip_input();
|
||||
|
||||
/* If a response was generated, send it */
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
void uIPManagement_UDPCallback(void);
|
||||
|
||||
#if defined(INCLUDE_FROM_UIPMANAGEMENT_C)
|
||||
static void uIPManagement_ProcessIncommingPacket(void);
|
||||
static void uIPManagement_ProcessIncomingPacket(void);
|
||||
static void uIPManagement_ManageConnections(void);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue