diff options
Diffstat (limited to 'board/discovery-stm32f072/board.h')
-rw-r--r-- | board/discovery-stm32f072/board.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/board/discovery-stm32f072/board.h b/board/discovery-stm32f072/board.h index 531a52e9b9..025c72de48 100644 --- a/board/discovery-stm32f072/board.h +++ b/board/discovery-stm32f072/board.h @@ -30,19 +30,22 @@ /* USB Configuration */ #define CONFIG_USB #define CONFIG_USB_PID 0x500f +#define CONFIG_USB_CONSOLE /* USB interface indexes (use define rather than enum to expand them) */ -#define USB_IFACE_STREAM 0 -#define USB_IFACE_GPIO 1 -#define USB_IFACE_SPI 2 -#define USB_IFACE_COUNT 3 +#define USB_IFACE_STREAM 0 +#define USB_IFACE_GPIO 1 +#define USB_IFACE_SPI 2 +#define USB_IFACE_CONSOLE 3 +#define USB_IFACE_COUNT 4 /* USB endpoint indexes (use define rather than enum to expand them) */ #define USB_EP_CONTROL 0 #define USB_EP_STREAM 1 #define USB_EP_GPIO 2 #define USB_EP_SPI 3 -#define USB_EP_COUNT 4 +#define USB_EP_CONSOLE 4 +#define USB_EP_COUNT 5 /* Enable control of GPIOs over USB */ #define CONFIG_USB_GPIO @@ -76,6 +79,7 @@ enum usb_strings { USB_STR_PRODUCT, USB_STR_VERSION, USB_STR_STREAM_NAME, + USB_STR_CONSOLE_NAME, USB_STR_COUNT }; |