projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed Set/Clear Feature requests directed to a non-configured endpoint not returning...
[pub/USBasp.git]
/
Projects
/
AVRISP-MKII
/
Lib
/
V2Protocol.c
diff --git
a/Projects/AVRISP-MKII/Lib/V2Protocol.c
b/Projects/AVRISP-MKII/Lib/V2Protocol.c
index
3df8045
..
431f9c2
100644
(file)
--- a/
Projects/AVRISP-MKII/Lib/V2Protocol.c
+++ b/
Projects/AVRISP-MKII/Lib/V2Protocol.c
@@
-131,6
+131,7
@@
void V2Protocol_ProcessCommand(void)
}
\r
\r
Endpoint_WaitUntilReady();
\r
}
\r
\r
Endpoint_WaitUntilReady();
\r
+ Endpoint_SelectEndpoint(AVRISP_DATA_OUT_EPNUM);
\r
Endpoint_SetEndpointDirection(ENDPOINT_DIR_OUT);
\r
}
\r
\r
Endpoint_SetEndpointDirection(ENDPOINT_DIR_OUT);
\r
}
\r
\r
@@
-149,6
+150,7
@@
static void V2Protocol_UnknownCommand(const uint8_t V2Command)
}
\r
\r
Endpoint_ClearOUT();
\r
}
\r
\r
Endpoint_ClearOUT();
\r
+ Endpoint_SelectEndpoint(AVRISP_DATA_IN_EPNUM);
\r
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
\r
\r
Endpoint_Write_Byte(V2Command);
\r
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
\r
\r
Endpoint_Write_Byte(V2Command);
\r
@@
-160,6
+162,7
@@
static void V2Protocol_UnknownCommand(const uint8_t V2Command)
static void V2Protocol_SignOn(void)
\r
{
\r
Endpoint_ClearOUT();
\r
static void V2Protocol_SignOn(void)
\r
{
\r
Endpoint_ClearOUT();
\r
+ Endpoint_SelectEndpoint(AVRISP_DATA_IN_EPNUM);
\r
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
\r
\r
Endpoint_Write_Byte(CMD_SIGN_ON);
\r
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
\r
\r
Endpoint_Write_Byte(CMD_SIGN_ON);
\r
@@
-175,6
+178,7
@@
static void V2Protocol_SignOn(void)
static void V2Protocol_ResetProtection(void)
\r
{
\r
Endpoint_ClearOUT();
\r
static void V2Protocol_ResetProtection(void)
\r
{
\r
Endpoint_ClearOUT();
\r
+ Endpoint_SelectEndpoint(AVRISP_DATA_IN_EPNUM);
\r
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
\r
\r
Endpoint_Write_Byte(CMD_RESET_PROTECTION);
\r
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
\r
\r
Endpoint_Write_Byte(CMD_RESET_PROTECTION);
\r
@@
-197,6
+201,7
@@
static void V2Protocol_GetSetParam(const uint8_t V2Command)
ParamValue = Endpoint_Read_Byte();
\r
\r
Endpoint_ClearOUT();
\r
ParamValue = Endpoint_Read_Byte();
\r
\r
Endpoint_ClearOUT();
\r
+ Endpoint_SelectEndpoint(AVRISP_DATA_IN_EPNUM);
\r
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
\r
\r
Endpoint_Write_Byte(V2Command);
\r
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
\r
\r
Endpoint_Write_Byte(V2Command);
\r
@@
-230,6
+235,7
@@
static void V2Protocol_LoadAddress(void)
Endpoint_Read_Stream_BE(&CurrentAddress, sizeof(CurrentAddress), NO_STREAM_CALLBACK);
\r
\r
Endpoint_ClearOUT();
\r
Endpoint_Read_Stream_BE(&CurrentAddress, sizeof(CurrentAddress), NO_STREAM_CALLBACK);
\r
\r
Endpoint_ClearOUT();
\r
+ Endpoint_SelectEndpoint(AVRISP_DATA_IN_EPNUM);
\r
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
\r
\r
MustSetAddress = true;
\r
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
\r
\r
MustSetAddress = true;
\r