summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-12-19 13:16:47 +0700
committerGitHub <[email protected]>2025-12-19 13:16:47 +0700
commit83fa3bbffe2237303ff1ae92fe0b6c8384073993 (patch)
treea2703ed755ddb6cd7704a477bd4ada7207363815 /hw
parent2b9a778621a2d80c4fa55b0e0deed29756a0a287 (diff)
parent49a8529dcf8f5b2616640e6f96dcb27e930d1f0d (diff)
Merge pull request #3419 from hathach/remove-sprintf
remove the usage snprintf
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/family_support.cmake5
-rw-r--r--hw/bsp/rp2040/family.cmake2
2 files changed, 1 insertions, 6 deletions
diff --git a/hw/bsp/family_support.cmake b/hw/bsp/family_support.cmake
index 5eadcdaa9..baa8422fe 100644
--- a/hw/bsp/family_support.cmake
+++ b/hw/bsp/family_support.cmake
@@ -207,11 +207,6 @@ function(family_add_subdirectory DIR)
endif()
endfunction()
-function(family_get_project_name OUTPUT_NAME DIR)
- get_filename_component(SHORT_NAME ${DIR} NAME)
- set(${OUTPUT_NAME} ${TINYUSB_FAMILY_PROJECT_NAME_PREFIX}${SHORT_NAME} PARENT_SCOPE)
-endfunction()
-
function(family_initialize_project PROJECT DIR)
# set output suffix to .elf (skip espressif and rp2040)
if(NOT FAMILY STREQUAL "espressif" AND NOT FAMILY STREQUAL "rp2040")
diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake
index 390d6072c..1602e35eb 100644
--- a/hw/bsp/rp2040/family.cmake
+++ b/hw/bsp/rp2040/family.cmake
@@ -296,7 +296,7 @@ function(family_configure_host_example TARGET RTOS)
# Pico-PIO-USB does not compile with all pico-sdk supported compilers, so check before enabling it
is_compiler_supported_by_pico_pio_usb(PICO_PIO_USB_COMPILER_SUPPORTED)
if (PICO_PIO_USB_COMPILER_SUPPORTED)
- family_add_pico_pio_usb(${PROJECT})
+ family_add_pico_pio_usb(${TARGET})
endif()
endif()