Skip to content

Commit

Permalink
stlinkv3mini: Only OTG_HS has connector.
Browse files Browse the repository at this point in the history
  • Loading branch information
UweBonnes committed Jul 3, 2020
1 parent 5c24d5c commit 11c6d4c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions hw/bsp/stlinkv3mini/board.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
PORT ?= 1
# Only OTG-HS has a connector on this board

REDUCE_SPEED ?= 0

CFLAGS += \
Expand All @@ -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
Expand Down

0 comments on commit 11c6d4c

Please sign in to comment.