change REDUCE_SPEED=0/1 to explicitly SPEED=high/full
update readme, boards.md to add link to new stm boards
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
REDUCE_SPEED ?= 0
|
||||
# Only OTG-HS has a connector on this board
|
||||
|
||||
SPEED ?= high
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
@@ -13,12 +15,12 @@ CFLAGS += \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_STM32F7 \
|
||||
-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")
|
||||
ifeq ($(SPEED), high)
|
||||
CFLAGS += -DBOARD_DEVICE_RHPORT_SPEED=OPT_MODE_HIGH_SPEED
|
||||
$(info "Using OTG_HS in HighSpeed mode")
|
||||
else
|
||||
CFLAGS += -DBOARD_DEVICE_RHPORT_SPEED=OPT_MODE_FULL_SPEED
|
||||
$(info "Using OTG_HS in FS mode")
|
||||
CFLAGS += -DBOARD_DEVICE_RHPORT_SPEED=OPT_MODE_FULL_SPEED
|
||||
$(info "Using OTG_HS in FullSpeed mode")
|
||||
endif
|
||||
|
||||
# suppress warning caused by vendor mcu driver
|
||||
|
||||
Reference in New Issue
Block a user