diff options
| author | hathach <[email protected]> | 2023-07-07 16:07:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-07-07 16:07:11 +0700 |
| commit | e0f1ba8b0e9cf46fabcddc72a61d5515df424edf (patch) | |
| tree | 7ae20dca011706d82d647e6f42882654fbc0fb5d /hw | |
| parent | 4c156100fafa682407f1a9a459d8b8800a029446 (diff) | |
fully work with multiple ports without CFG_TUSB_RHPORT0/1
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/family_support.cmake | 4 | ||||
| -rw-r--r-- | hw/bsp/ra/boards/ra6m5_ek/board.cmake | 7 |
2 files changed, 2 insertions, 9 deletions
diff --git a/hw/bsp/family_support.cmake b/hw/bsp/family_support.cmake index 5b97eb5e4..d8298c8ad 100644 --- a/hw/bsp/family_support.cmake +++ b/hw/bsp/family_support.cmake @@ -227,8 +227,8 @@ function(family_add_tinyusb TARGET OPT_MCU RTOS) if (DEFINED LOG) target_compile_definitions(${TARGET}-tinyusb_config INTERFACE CFG_TUSB_DEBUG=${LOG}) - if (LOG STREQUAL "3") - # no inline for debug level 3 + if (LOG STREQUAL "4") + # no inline for debug level 4 target_compile_definitions(${TARGET}-tinyusb_config INTERFACE TU_ATTR_ALWAYS_INLINE=) endif () endif() diff --git a/hw/bsp/ra/boards/ra6m5_ek/board.cmake b/hw/bsp/ra/boards/ra6m5_ek/board.cmake index d934a0c0d..5a615f9b0 100644 --- a/hw/bsp/ra/boards/ra6m5_ek/board.cmake +++ b/hw/bsp/ra/boards/ra6m5_ek/board.cmake @@ -14,11 +14,4 @@ function(update_board TARGET) # port 0 is fullspeed, port 1 is highspeed BOARD_TUD_MAX_SPEED=$<IF:${PORT},OPT_MODE_HIGH_SPEED,OPT_MODE_FULL_SPEED> ) - - if (PORT STREQUAL 1) - target_compile_definitions(${TARGET} PUBLIC - CFG_TUSB_RHPORT1_MODE=OPT_MODE_DEVICE|OPT_MODE_HIGH_SPEED - CFG_TUSB_RHPORT0_MODE=0 - ) - endif () endfunction() |
