Ensure that unsupported SetFeature/ClearFeature request targets cause a STALL back to the host.
This commit is contained in:
parent
c99f6657a6
commit
d4952265a6
4 changed files with 17 additions and 8 deletions
|
|
@ -199,6 +199,9 @@ uint8_t Pipe_Discard_Stream(uint16_t Length
|
|||
return PIPE_RWSTREAM_NoError;
|
||||
}
|
||||
|
||||
/* The following abuses the C preprocessor in order to copy-past common code with slight alterations,
|
||||
* so that the code needs to be written once. It is a crude form of templating to reduce code maintenance. */
|
||||
|
||||
#define TEMPLATE_FUNC_NAME Pipe_Write_Stream_LE
|
||||
#define TEMPLATE_BUFFER_TYPE const void*
|
||||
#define TEMPLATE_TOKEN PIPE_TOKEN_OUT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue