hil add stm32f723disco, add test flags for device/host/dual

This commit is contained in:
hathach
2024-11-13 13:08:30 +07:00
parent 839ec17292
commit aeae2966a2
8 changed files with 202 additions and 86 deletions

View File

@@ -5,12 +5,12 @@ set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/STM32F723xE_FLASH.ld)
set(RHPORT_SPEED OPT_MODE_FULL_SPEED OPT_MODE_HIGH_SPEED)
# device default to PORT 1 High Speed
# For Hardware test: device default to PORT 0, Host to port 1
if (NOT DEFINED RHPORT_DEVICE)
set(RHPORT_DEVICE 1)
set(RHPORT_DEVICE 0)
endif()
if (NOT DEFINED RHPORT_HOST)
set(RHPORT_HOST 0)
set(RHPORT_HOST 1)
endif()
function(update_board TARGET)

View File

@@ -1,8 +1,9 @@
MCU_VARIANT = stm32f723xx
# For Hardware test: device default to PORT 0, Host to port 1
RHPORT_SPEED = OPT_MODE_FULL_SPEED OPT_MODE_HIGH_SPEED
RHPORT_DEVICE ?= 1
RHPORT_HOST ?= 0
RHPORT_DEVICE ?= 0
RHPORT_HOST ?= 1
CFLAGS += \
-DSTM32F723xx \