[mcu_periph] Disable USB serial debug endpoint when not in use

This commit is contained in:
Freek van Tienen
2023-03-24 11:02:38 +01:00
parent 5b7fd90c77
commit f0a8ed3050
+3 -3
View File
@@ -39,10 +39,10 @@
#endif
#ifdef USB_MAX_ENDPOINTS
#if USB_MAX_ENDPOINTS < 4
#define USBD_NUMBER 1
#else
#if USB_MAX_ENDPOINTS >= 4 && USE_USB_SERIAL_DEBUG
#define USBD_NUMBER 2
#else
#define USBD_NUMBER 1
#endif
#else
#define USBD_NUMBER 1