summaryrefslogtreecommitdiff
path: root/board/hyperdebug/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/hyperdebug/board.h')
-rw-r--r--board/hyperdebug/board.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/board/hyperdebug/board.h b/board/hyperdebug/board.h
index 2ebc8467a1..9d15311784 100644
--- a/board/hyperdebug/board.h
+++ b/board/hyperdebug/board.h
@@ -18,20 +18,20 @@
#define CONFIG_ROM_BASE 0x0
#define CONFIG_ROM_SIZE (CONFIG_RAM_BASE - CONFIG_ROM_BASE)
-/* Enable USB forwarding on UART 1, 2, 4 and the LPUART (UART9) */
+/* Enable USB forwarding on UART 2, 3, 4, and 5. */
#define CONFIG_STREAM_USART
-#define CONFIG_STREAM_USART1
+#undef CONFIG_STREAM_USART1
#define CONFIG_STREAM_USART2
-#undef CONFIG_STREAM_USART3
+#define CONFIG_STREAM_USART3
#define CONFIG_STREAM_USART4
-#undef CONFIG_STREAM_USART5
-#define CONFIG_STREAM_USART9
+#define CONFIG_STREAM_USART5
+#undef CONFIG_STREAM_USART9
#define CONFIG_STREAM_USB
#define CONFIG_CMD_USART_INFO
-/* The UART console is on UART3 */
+/* The UART console is on LPUART (UART9), connected to st-link debugger. */
#undef CONFIG_UART_CONSOLE
-#define CONFIG_UART_CONSOLE 3
+#define CONFIG_UART_CONSOLE 9
#undef CONFIG_UART_TX_DMA
#undef CONFIG_UART_RX_DMA
@@ -69,10 +69,10 @@
#define USB_IFACE_CONSOLE 0
#define USB_IFACE_SPI 1
#define USB_IFACE_I2C 2
-#define USB_IFACE_USART1_STREAM 3
-#define USB_IFACE_USART2_STREAM 4
+#define USB_IFACE_USART2_STREAM 3
+#define USB_IFACE_USART3_STREAM 4
#define USB_IFACE_USART4_STREAM 5
-#define USB_IFACE_USART9_STREAM 6
+#define USB_IFACE_USART5_STREAM 6
#define USB_IFACE_COUNT 7
/* USB endpoint indexes (use define rather than enum to expand them) */
@@ -80,10 +80,10 @@
#define USB_EP_CONSOLE 1
#define USB_EP_SPI 2
#define USB_EP_I2C 3
-#define USB_EP_USART1_STREAM 4
-#define USB_EP_USART2_STREAM 5
+#define USB_EP_USART2_STREAM 4
+#define USB_EP_USART3_STREAM 5
#define USB_EP_USART4_STREAM 6
-#define USB_EP_USART9_STREAM 7
+#define USB_EP_USART5_STREAM 7
#define USB_EP_COUNT 8
/*
@@ -141,10 +141,10 @@ enum usb_strings {
USB_STR_CONSOLE_NAME,
USB_STR_SPI_NAME,
USB_STR_I2C_NAME,
- USB_STR_USART1_STREAM_NAME,
USB_STR_USART2_STREAM_NAME,
+ USB_STR_USART3_STREAM_NAME,
USB_STR_USART4_STREAM_NAME,
- USB_STR_USART9_STREAM_NAME,
+ USB_STR_USART5_STREAM_NAME,
USB_STR_COUNT
};