Add branch for the conversion of demos to use standard C header files for configuration, rather than makefile defined macros.
This commit is contained in:
parent
e8570c4a37
commit
359fbfe14d
395 changed files with 9912 additions and 2756 deletions
|
@ -108,12 +108,10 @@ uint8_t ProcessConfigurationDescriptor(void)
|
|||
PrinterAltSetting = PrinterInterface->AlternateSetting;
|
||||
|
||||
/* Configure the Printer data IN pipe */
|
||||
Pipe_ConfigurePipe(PRINTER_DATA_IN_PIPE, EP_TYPE_BULK, PIPE_TOKEN_IN,
|
||||
DataINEndpoint->EndpointAddress, DataINEndpoint->EndpointSize, PIPE_BANK_SINGLE);
|
||||
Pipe_ConfigurePipe(PRINTER_DATA_IN_PIPE, EP_TYPE_BULK, DataINEndpoint->EndpointAddress, DataINEndpoint->EndpointSize, 1);
|
||||
|
||||
/* Configure the Printer data OUT pipe */
|
||||
Pipe_ConfigurePipe(PRINTER_DATA_OUT_PIPE, EP_TYPE_BULK, PIPE_TOKEN_OUT,
|
||||
DataOUTEndpoint->EndpointAddress, DataOUTEndpoint->EndpointSize, PIPE_BANK_SINGLE);
|
||||
Pipe_ConfigurePipe(PRINTER_DATA_OUT_PIPE, EP_TYPE_BULK, DataOUTEndpoint->EndpointAddress, DataOUTEndpoint->EndpointSize, 1);
|
||||
|
||||
/* Valid data found, return success */
|
||||
return SuccessfulConfigRead;
|
||||
|
|
|
@ -38,11 +38,11 @@
|
|||
#include "Lib/PrinterCommands.h"
|
||||
|
||||
/* Macros: */
|
||||
/** Pipe number of the Printer data IN pipe. */
|
||||
#define PRINTER_DATA_IN_PIPE 1
|
||||
/** Pipe address of the Printer data IN pipe. */
|
||||
#define PRINTER_DATA_IN_PIPE (PIPE_DIR_IN | 1)
|
||||
|
||||
/** Pipe number of the Printer data OUT pipe. */
|
||||
#define PRINTER_DATA_OUT_PIPE 2
|
||||
/** Pipe address of the Printer data OUT pipe. */
|
||||
#define PRINTER_DATA_OUT_PIPE (PIPE_DIR_OUT | 2)
|
||||
|
||||
/* Enums: */
|
||||
/** Enum for the possible return codes of the \ref ProcessConfigurationDescriptor() function. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue