summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorhathach <thach@tinyusb.org>2020-07-29 15:38:55 +0700
committerhathach <thach@tinyusb.org>2020-07-29 15:38:55 +0700
commit60638282799675272d2d25ed938edb30250bc578 (patch)
tree033fedeac15de69cb905eea22f1110c40c91117a /supervisor
parentdebbf1028adee2309ed991c90517c50d5eb13bfb (diff)
replace USB_MSC_MAX_PACKET_SIZE with USB_HIGHSPEED in descriptor gen tool
Diffstat (limited to 'supervisor')
-rw-r--r--supervisor/supervisor.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/supervisor/supervisor.mk b/supervisor/supervisor.mk
index 188536686..a066fc0fd 100644
--- a/supervisor/supervisor.mk
+++ b/supervisor/supervisor.mk
@@ -129,8 +129,8 @@ ifndef USB_HID_DEVICES
USB_HID_DEVICES = "KEYBOARD,MOUSE,CONSUMER,GAMEPAD"
endif
-ifndef USB_MSC_MAX_PACKET_SIZE
-USB_MSC_MAX_PACKET_SIZE = 64
+ifndef USB_HIGHSPEED
+USB_HIGHSPEED = 0
endif
ifndef USB_CDC_EP_NUM_NOTIFICATION
@@ -178,7 +178,6 @@ USB_DESCRIPTOR_ARGS = \
--interface_name $(USB_INTERFACE_NAME)\
--devices $(USB_DEVICES)\
--hid_devices $(USB_HID_DEVICES)\
- --msc_max_packet_size $(USB_MSC_MAX_PACKET_SIZE)\
--cdc_ep_num_notification $(USB_CDC_EP_NUM_NOTIFICATION)\
--cdc_ep_num_data_out $(USB_CDC_EP_NUM_DATA_OUT)\
--cdc_ep_num_data_in $(USB_CDC_EP_NUM_DATA_IN)\
@@ -195,6 +194,10 @@ ifeq ($(USB_RENUMBER_ENDPOINTS), 0)
USB_DESCRIPTOR_ARGS += --no-renumber_endpoints
endif
+ifeq ($(USB_HIGHSPEED), 1)
+USB_DESCRIPTOR_ARGS += --highspeed
+endif
+
$(BUILD)/supervisor/shared/translate.o: $(HEADER_BUILD)/qstrdefs.generated.h
$(BUILD)/autogen_usb_descriptor.c $(BUILD)/genhdr/autogen_usb_descriptor.h: autogen_usb_descriptor.intermediate