diff options
| author | Ha Thach <[email protected]> | 2026-06-01 12:42:03 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-06-01 12:42:03 +0700 |
| commit | bbdb41995de6510b837ad239933e1823ca175314 (patch) | |
| tree | ac33e616077fde67751dffe92cf68afa8671dd0d /examples/device | |
| parent | 2c27ec9c89f95057e30da5d08c01f01c941b8a58 (diff) | |
| parent | 17185428df755d7229407e6ac87c124e522877dc (diff) | |
Merge pull request #3657 from hathach/usbh-add-control-queue
Add control transfer fifo for host stack
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/midi2_device/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | examples/device/midi2_device/src/main.c | 2 | ||||
| -rw-r--r-- | examples/device/msc_dual_lun/src/main.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/device/midi2_device/CMakeLists.txt b/examples/device/midi2_device/CMakeLists.txt index 295af6550..f1fe09db2 100644 --- a/examples/device/midi2_device/CMakeLists.txt +++ b/examples/device/midi2_device/CMakeLists.txt @@ -30,4 +30,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC family_configure_device_example(${PROJECT_NAME} noos) # Suppress pre-existing warning in usbd.c (uint8_t comparison always true/false) -target_compile_options(${PROJECT_NAME} PRIVATE -Wno-type-limits) +if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang") + target_compile_options(${PROJECT_NAME} PRIVATE -Wno-type-limits) +endif() diff --git a/examples/device/midi2_device/src/main.c b/examples/device/midi2_device/src/main.c index 62741ac41..ce052a20b 100644 --- a/examples/device/midi2_device/src/main.c +++ b/examples/device/midi2_device/src/main.c @@ -715,6 +715,4 @@ int main(void) { } } } - - return 0; } diff --git a/examples/device/msc_dual_lun/src/main.c b/examples/device/msc_dual_lun/src/main.c index a4ade6f9b..1d764f12c 100644 --- a/examples/device/msc_dual_lun/src/main.c +++ b/examples/device/msc_dual_lun/src/main.c @@ -71,7 +71,7 @@ static void usb_device_init(void) { board_init_after_tusb(); } -#if CFG_TUSB_OS != OPT_OS_NONE && CFG_TUSB_OS != OPT_OS_PICO +#if CFG_TUSB_OS_HAS_SCHEDULER static void usb_device_task(RTOS_PARAM param) { (void) param; usb_device_init(); |
