diff options
author | Anton Staaf <robotboy@chromium.org> | 2014-10-28 10:53:49 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-29 18:37:57 +0000 |
commit | d7b99e993a343cca6a6ba403b2837548a5524f09 (patch) | |
tree | e033543ba729dc95474da142a3c986d9f77549dd /board/discovery-stm32f072/board.h | |
parent | 450b882dee25ed1f5035531f898a9e75748e72c1 (diff) | |
download | chrome-ec-d7b99e993a343cca6a6ba403b2837548a5524f09.tar.gz |
discovery-stm32f072: Enable USB console
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
Verify that the console is discovered and works.
Change-Id: I7bdf85c4435a6423acc915a61c1d1302052113a0
Reviewed-on: https://chromium-review.googlesource.com/225951
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
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 }; |