shared/tinyusb: Allow max USB descriptor string to be configured.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2023-04-04 11:57:25 +10:00
parent 0a3600a9ad
commit 783ddfc264
4 changed files with 9 additions and 8 deletions

View File

@@ -33,7 +33,7 @@
void mp_usbd_task(void);
// Function to be implemented in port code.
// Can write a string up to USBD_DESC_STR_MAX characters long, plus terminating byte.
// Can write a string up to MICROPY_HW_USB_DESC_STR_MAX characters long, plus terminating byte.
extern void mp_usbd_port_get_serial_number(char *buf);
#endif // MICROPY_INCLUDED_SHARED_TINYUSB_USBD_H