summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/ch58x/boards/yd-ch582m/board.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/bsp/ch58x/boards/yd-ch582m/board.h b/hw/bsp/ch58x/boards/yd-ch582m/board.h
index 6e25dbdd3..a14ffd198 100644
--- a/hw/bsp/ch58x/boards/yd-ch582m/board.h
+++ b/hw/bsp/ch58x/boards/yd-ch582m/board.h
@@ -47,8 +47,12 @@ extern "C" {
// Dual-port: USB1 (rhport 0) = Device, USB2 (rhport 1) = Host
// Swap these two if you want the opposite assignment
+#ifndef BOARD_TUD_RHPORT
#define BOARD_TUD_RHPORT 0
+#endif
+#ifndef BOARD_TUH_RHPORT
#define BOARD_TUH_RHPORT 1
+#endif
#ifdef __cplusplus
}