File tree 1 file changed +21
-3
lines changed
src/portable/renesas/rusb2
1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,24 @@ static dcd_data_t _dcd;
89
89
// INTERNAL OBJECT & FUNCTION DECLARATION
90
90
//--------------------------------------------------------------------+
91
91
92
+ #ifndef FIRST_BULK_PIPE
93
+ #define FIRST_BULK_PIPE 3
94
+ #endif
95
+
96
+ #ifndef FIRST_INTERRUPT_PIPE
97
+ #define FIRST_INTERRUPT_PIPE 6
98
+ #endif
99
+
100
+ #ifndef NUMBER_OF_PIPES
101
+ #define NUMBER_OF_PIPES 10
102
+ #endif
103
+
104
+ #ifdef NO_ISOCRONOUS_PIPE
105
+ #define FIRST_PIPE FIRST_BULK_PIPE
106
+ #else
107
+ #define FIRST_PIPE 1
108
+ #endif
109
+
92
110
// Transfer conditions specifiable for each pipe:
93
111
// - Pipe 0: Control transfer with 64-byte single buffer
94
112
// - Pipes 1 and 2: Bulk isochronous transfer continuous transfer mode with programmable buffer size up
@@ -97,9 +115,9 @@ static dcd_data_t _dcd;
97
115
// optional double buffer
98
116
// - Pipes 6 to 9: Interrupt transfer with 64-byte single buffer
99
117
enum {
100
- PIPE_1ST_BULK = 3 ,
101
- PIPE_1ST_INTERRUPT = 6 ,
102
- PIPE_COUNT = 10 ,
118
+ PIPE_1ST_BULK = FIRST_BULK_PIPE ,
119
+ PIPE_1ST_INTERRUPT = FIRST_INTERRUPT_PIPE ,
120
+ PIPE_COUNT = NUMBER_OF_PIPES ,
103
121
};
104
122
105
123
static unsigned find_pipe (unsigned xfer )
You can’t perform that action at this time.
0 commit comments