diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2019-10-07 13:58:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-07 13:58:06 -0700 |
| commit | 4eb11fbde65872bf3385bfd1b487adf72eec4016 (patch) | |
| tree | c11386668c68be357f65bc18c259b4190b1ae67a /supervisor | |
| parent | 45c57db0ed749f08661969596ae520016b7b2295 (diff) | |
| parent | ef42abb8184b4c26e8ad4d047d7cca4372c9300b (diff) | |
Merge pull request #2198 from kamtom480/circuitpython-msc-max-packet-size
Add a way to change max packet size for MSC
Diffstat (limited to 'supervisor')
| -rw-r--r-- | supervisor/supervisor.mk | 5 |
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 |
