Spell check all source code variables, comments and strings.
This commit is contained in:
parent
c647c27639
commit
d6edfe35c8
66 changed files with 247 additions and 247 deletions
|
@ -36,12 +36,12 @@
|
|||
#define INCLUDE_FROM_V2PROTOCOL_C
|
||||
#include "V2Protocol.h"
|
||||
|
||||
/** Master V2 Protocol packet handler, for receieved V2 Protocol packets from a connected host.
|
||||
/** Master V2 Protocol packet handler, for received V2 Protocol packets from a connected host.
|
||||
* This routine decodes the issued command and passes off the handling of the command to the
|
||||
* appropriate function.
|
||||
*/
|
||||
void V2Protocol_ProcessCommand(void)
|
||||
{
|
||||
void V2Protocol_ProcessCommand(void)
|
||||
{
|
||||
uint8_t V2Command = Endpoint_Read_Byte();
|
||||
|
||||
switch (V2Command)
|
||||
|
@ -95,8 +95,8 @@ void V2Protocol_ProcessCommand(void)
|
|||
}
|
||||
|
||||
Endpoint_WaitUntilReady();
|
||||
Endpoint_SetEndpointDirection(ENDPOINT_DIR_OUT);
|
||||
}
|
||||
Endpoint_SetEndpointDirection(ENDPOINT_DIR_OUT);
|
||||
}
|
||||
|
||||
/** Handler for unknown V2 protocol commands. This discards all sent data and returns a
|
||||
* STATUS_CMD_UNKNOWN status back to the host.
|
||||
|
@ -105,7 +105,7 @@ void V2Protocol_ProcessCommand(void)
|
|||
*/
|
||||
static void V2Protocol_Command_Unknown(uint8_t V2Command)
|
||||
{
|
||||
/* Discard all incomming data */
|
||||
/* Discard all incoming data */
|
||||
while (Endpoint_BytesInEndpoint() == AVRISP_DATA_EPSIZE)
|
||||
{
|
||||
Endpoint_ClearOUT();
|
||||
|
@ -120,7 +120,7 @@ static void V2Protocol_Command_Unknown(uint8_t V2Command)
|
|||
Endpoint_ClearIN();
|
||||
}
|
||||
|
||||
/** Handler for the CMD_SIGN_ON command, returning the programmer ID string to the host. */
|
||||
/** Handler for the CMD_SIGN_ON command, returning the programmer ID string to the host. */
|
||||
static void V2Protocol_Command_SignOn(void)
|
||||
{
|
||||
Endpoint_ClearOUT();
|
||||
|
@ -151,7 +151,7 @@ static void V2Protocol_Command_GetSetParam(uint8_t V2Command)
|
|||
|
||||
Endpoint_Write_Byte(V2Command);
|
||||
|
||||
uint8_t ParamPrivs = V2Params_GetParameterPrivellages(ParamID);
|
||||
uint8_t ParamPrivs = V2Params_GetParameterPrivileges(ParamID);
|
||||
|
||||
if ((V2Command == CMD_SET_PARAMETER) && (ParamPrivs & PARAM_PRIV_WRITE))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue