diff options
| author | Uwe Bonnes <[email protected]> | 2020-07-03 10:59:02 +0200 |
|---|---|---|
| committer | Uwe Bonnes <[email protected]> | 2020-07-03 10:59:02 +0200 |
| commit | 11c6d4cdaea007cbe804dfc7d512bd82562e41d2 (patch) | |
| tree | 8339f330db2f79eefae201ea471bded50b4c76db | |
| parent | 5c24d5ca72d6657b1be03ded699fdf525abb0525 (diff) | |
stlinkv3mini: Only OTG_HS has connector.
| -rw-r--r-- | hw/bsp/stlinkv3mini/board.mk | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/hw/bsp/stlinkv3mini/board.mk b/hw/bsp/stlinkv3mini/board.mk index 47148ec4d..b77fb5a51 100644 --- a/hw/bsp/stlinkv3mini/board.mk +++ b/hw/bsp/stlinkv3mini/board.mk @@ -1,4 +1,5 @@ -PORT ?= 1 +# Only OTG-HS has a connector on this board + REDUCE_SPEED ?= 0 CFLAGS += \ @@ -12,18 +13,13 @@ CFLAGS += \ -DSTM32F723xx \ -DHSE_VALUE=25000000 \ -DCFG_TUSB_MCU=OPT_MCU_STM32F7 \ - -DBOARD_DEVICE_RHPORT_NUM=$(PORT) - -ifeq ($(PORT), 1) - ifeq ($(REDUCE_SPEED), 0) + -DBOARD_DEVICE_RHPORT_NUM=1 +ifeq ($(REDUCE_SPEED), 0) CFLAGS += -DBOARD_DEVICE_RHPORT_SPEED=OPT_MODE_HIGH_SPEED $(info "Using OTG_HS in HS mode") - else +else CFLAGS += -DBOARD_DEVICE_RHPORT_SPEED=OPT_MODE_FULL_SPEED $(info "Using OTG_HS in FS mode") - endif -else -$(info "Using OTG_FS") endif # mcu driver cause following warnings |
