Skip to content

Commit

Permalink
fix multiple flag on compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Nov 27, 2024
1 parent 6377108 commit 453d695
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions hw/bsp/espressif/components/tinyusb_src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ if (DEFINED LOG)
endif()

if(DEFINED CFLAGS_CLI)
separate_arguments(CFLAGS_CLI)
list(APPEND compile_definitions ${CFLAGS_CLI})
endif()

Expand Down
2 changes: 2 additions & 0 deletions hw/bsp/family_support.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ function(family_configure_common TARGET RTOS)

# compile define from command line
if(DEFINED CFLAGS_CLI)
separate_arguments(CFLAGS_CLI)
target_compile_options(${TARGET} PUBLIC ${CFLAGS_CLI})
endif()

Expand Down Expand Up @@ -291,6 +292,7 @@ function(family_add_tinyusb TARGET OPT_MCU RTOS)

# compile define from command line
if(DEFINED CFLAGS_CLI)
separate_arguments(CFLAGS_CLI)
target_compile_options(${TARGET}-tinyusb PUBLIC ${CFLAGS_CLI})
endif()

Expand Down
1 change: 1 addition & 0 deletions hw/bsp/rp2040/family.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ function(family_configure_target TARGET RTOS)

# compile define from command line
if(DEFINED CFLAGS_CLI)
separate_arguments(CFLAGS_CLI)
target_compile_options(${TARGET} PUBLIC ${CFLAGS_CLI})
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/class/msc/msc_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static inline uint16_t rdwr10_get_blocksize(msc_cbw_t const* cbw) {
return (uint16_t) (cbw->total_bytes / block_count);
}

uint8_t rdwr10_validate_cmd(msc_cbw_t const* cbw) {
static uint8_t rdwr10_validate_cmd(msc_cbw_t const* cbw) {
uint8_t status = MSC_CSW_STATUS_PASSED;
uint16_t const block_count = rdwr10_get_blockcount(cbw);

Expand Down
10 changes: 6 additions & 4 deletions test/hil/tinyusb.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
"name": "esptool",
"uid": "4ea4f48f6bc3ee11bbb9d00f9e1b1c54",
"args": "-b 1500000"
}
},
"comment": "Use TS3USB30 mux to test both device and host"
},
{
"name": "espressif_s3_devkitm",
"uid": "84F703C084E4",
"build" : {
"flags_on": ["", "CFG_TUD_DWC2_DMA_ENABLE CFG_TUH_DWC2_DMA_ENABLE"]
"flags_on": ["", "CFG_TUD_DWC2_DMA_ENABLE"]
},
"tests": {
"only": ["device/cdc_msc_freertos", "device/hid_composite_freertos"]
Expand Down Expand Up @@ -133,7 +134,7 @@
"name": "stm32f723disco",
"uid": "460029001951373031313335",
"build" : {
"flags_on": ["", "CFG_TUD_DWC2_DMA_ENABLE CFG_TUH_DWC2_DMA_ENABLE"]
"flags_on": ["", "CFG_TUH_DWC2_DMA_ENABLE"]
},
"tests": {
"device": true, "host": true, "dual": false,
Expand All @@ -143,7 +144,8 @@
"name": "jlink",
"uid": "000776606156",
"args": "-device stm32f723ie"
}
},
"comment": "Device port0 FS (slave only), Host port1 HS with DMA"
},
{
"name": "stm32h743nucleo",
Expand Down

0 comments on commit 453d695

Please sign in to comment.