change default port some stm bsp

- f769disco default port is highspeed port1
- remove PORT0 on stlink since the board only populated HS connector
This commit is contained in:
hathach
2020-07-02 11:58:40 +07:00
parent 4966fb2e13
commit 9a290febcd
4 changed files with 49 additions and 43 deletions
+5 -4
View File
@@ -1,4 +1,5 @@
PORT ?= 0
# Default is Highspeed port
PORT ?= 1
CFLAGS += \
-flto \
@@ -14,10 +15,10 @@ CFLAGS += \
-DBOARD_DEVICE_RHPORT_NUM=$(PORT)
ifeq ($(PORT), 1)
CFLAGS += -DBOARD_DEVICE_RHPORT_SPEED=OPT_MODE_HIGH_SPEED
$(info "PORT1 HS")
CFLAGS += -DBOARD_DEVICE_RHPORT_SPEED=OPT_MODE_HIGH_SPEED
$(info "PORT1 High Speed")
else
$(info "PORT0")
$(info "PORT0 Full Speed")
endif
# mcu driver cause following warnings