summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorKamil Tomaszewski <kamil.tomaszewski@sony.com>2019-10-04 13:49:33 +0200
committerKamil Tomaszewski <kamil.tomaszewski@sony.com>2019-10-04 13:49:33 +0200
commitef42abb8184b4c26e8ad4d047d7cca4372c9300b (patch)
tree1a9dee1f03423a52097f9aad68b43fa680635cda /supervisor
parentf4922a530a06ed62523ae333eab90fee6145fc46 (diff)
Add a way to change max packet size for MSC
Diffstat (limited to 'supervisor')
-rw-r--r--supervisor/supervisor.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/supervisor/supervisor.mk b/supervisor/supervisor.mk
index ee47be4b0..2b646f898 100644
--- a/supervisor/supervisor.mk
+++ b/supervisor/supervisor.mk
@@ -99,6 +99,10 @@ ifndef USB_MSC_NUM_ENDPOINT_PAIRS
USB_MSC_NUM_ENDPOINT_PAIRS = 1
endif
+ifndef USB_MSC_MAX_PACKET_SIZE
+USB_MSC_MAX_PACKET_SIZE = 64
+endif
+
SUPERVISOR_O = $(addprefix $(BUILD)/, $(SRC_SUPERVISOR:.c=.o)) $(BUILD)/autogen_display_resources.o
$(BUILD)/supervisor/shared/translate.o: $(HEADER_BUILD)/qstrdefs.generated.h
@@ -119,6 +123,7 @@ autogen_usb_descriptor.intermediate: ../../tools/gen_usb_descriptor.py Makefile
--devices $(USB_DEVICES)\
--hid_devices $(USB_HID_DEVICES)\
--msc_num_endpoint_pairs $(USB_MSC_NUM_ENDPOINT_PAIRS)\
+ --msc_max_packet_size $(USB_MSC_MAX_PACKET_SIZE)\
--output_c_file $(BUILD)/autogen_usb_descriptor.c\
--output_h_file $(BUILD)/genhdr/autogen_usb_descriptor.h