mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 05:00:26 +01:00
rp2/msc_disk: Allow configuring the USB MSC inquiry response.
This was previously hard-coded to "Micropy" / "Mass Storage" / "1.0". Now allow it to be overridden by a board. Also change "Micropy" to "MicroPy" and "1.0" to "1.00" to match stm32. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
committed by
Damien George
parent
61f331374d
commit
da6f1e1d1e
@@ -43,6 +43,18 @@
|
||||
#define MICROPY_HW_USB_CDC_INTERFACE_STRING "Board CDC"
|
||||
#endif
|
||||
|
||||
#ifndef MICROPY_HW_USB_MSC_INQUIRY_VENDOR_STRING
|
||||
#define MICROPY_HW_USB_MSC_INQUIRY_VENDOR_STRING "MicroPy"
|
||||
#endif
|
||||
|
||||
#ifndef MICROPY_HW_USB_MSC_INQUIRY_PRODUCT_STRING
|
||||
#define MICROPY_HW_USB_MSC_INQUIRY_PRODUCT_STRING "Mass Storage"
|
||||
#endif
|
||||
|
||||
#ifndef MICROPY_HW_USB_MSC_INQUIRY_REVISION_STRING
|
||||
#define MICROPY_HW_USB_MSC_INQUIRY_REVISION_STRING "1.00"
|
||||
#endif
|
||||
|
||||
#ifndef CFG_TUSB_RHPORT0_MODE
|
||||
#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_DEVICE)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user