File tree 4 files changed +32
-0
lines changed
dynamic_configuration/src
4 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,19 @@ enum
145
145
#define EPNUM_1_MSC_OUT 0x01
146
146
#define EPNUM_1_MSC_IN 0x82
147
147
148
+ #elif CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X
149
+ // FT9XX doesn't support a same endpoint number with different direction IN and OUT
150
+ // e.g EP1 OUT & EP1 IN cannot exist together
151
+ #define EPNUM_0_CDC_NOTIF 0x81
152
+ #define EPNUM_0_CDC_OUT 0x02
153
+ #define EPNUM_0_CDC_IN 0x83
154
+
155
+ #define EPNUM_0_MIDI_OUT 0x04
156
+ #define EPNUM_0_MIDI_IN 0x85
157
+
158
+ #define EPNUM_1_MSC_OUT 0x01
159
+ #define EPNUM_1_MSC_IN 0x82
160
+
148
161
#else
149
162
#define EPNUM_0_CDC_NOTIF 0x81
150
163
#define EPNUM_0_CDC_OUT 0x02
Original file line number Diff line number Diff line change 90
90
#define EPNUM_MSC_OUT 0x01
91
91
#define EPNUM_MSC_IN 0x82
92
92
93
+ #elif CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X
94
+ // FT9XX doesn't support a same endpoint number with different direction IN and OUT
95
+ // e.g EP1 OUT & EP1 IN cannot exist together
96
+ #define EPNUM_MSC_OUT 0x01
97
+ #define EPNUM_MSC_IN 0x82
98
+
93
99
#else
94
100
#define EPNUM_MSC_OUT 0x01
95
101
#define EPNUM_MSC_IN 0x81
Original file line number Diff line number Diff line change @@ -93,6 +93,12 @@ uint8_t const * tud_descriptor_device_cb(void)
93
93
#define EPNUM_AUDIO_IN 0x01
94
94
#define EPNUM_AUDIO_OUT 0x02
95
95
96
+ #elif CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X
97
+ // FT9XX doesn't support a same endpoint number with different direction IN and OUT
98
+ // e.g EP1 OUT & EP1 IN cannot exist together
99
+ #define EPNUM_AUDIO_IN 0x01
100
+ #define EPNUM_AUDIO_OUT 0x02
101
+
96
102
#else
97
103
#define EPNUM_AUDIO_IN 0x01
98
104
#define EPNUM_AUDIO_OUT 0x01
Original file line number Diff line number Diff line change 97
97
#define EPNUM_CDC_OUT 3
98
98
#define EPNUM_VENDOR_IN 4
99
99
#define EPNUM_VENDOR_OUT 5
100
+ #elif CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X
101
+ // FT9XX doesn't support a same endpoint number with different direction IN and OUT
102
+ // e.g EP1 OUT & EP1 IN cannot exist together
103
+ #define EPNUM_CDC_IN 2
104
+ #define EPNUM_CDC_OUT 3
105
+ #define EPNUM_VENDOR_IN 4
106
+ #define EPNUM_VENDOR_OUT 5
100
107
#else
101
108
#define EPNUM_CDC_IN 2
102
109
#define EPNUM_CDC_OUT 2
You can’t perform that action at this time.
0 commit comments