summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-10-19 13:27:53 +0700
committerGitHub <[email protected]>2021-10-19 13:27:53 +0700
commit4bfab30c02279a0530e1a56f4a7c539f2d35a293 (patch)
tree7af7c8ad0d57c693c44df71ebdab50e9b12a9e07 /hw
parente927359d9c4ed90639dd2b8f7026a73574f8ca4b (diff)
parent3485c82246ce17be1ca9649bb36dfc8b1782e593 (diff)
Merge pull request #1139 from hathach/release-0.12.00.12.0
update changelog and increase version for 0.12.0
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/rp2040/family.cmake25
1 files changed, 24 insertions, 1 deletions
diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake
index 06b5e9bd6..1aa180ef8 100644
--- a/hw/bsp/rp2040/family.cmake
+++ b/hw/bsp/rp2040/family.cmake
@@ -77,7 +77,6 @@ if (NOT TARGET _rp2040_family_inclusion_marker)
${TOP}/src/class/video/video_device.c
)
-
# Base config for host mode; wrapped by SDK's tinyusb_host
add_library(tinyusb_host_base INTERFACE)
target_sources(tinyusb_host_base INTERFACE
@@ -153,4 +152,28 @@ if (NOT TARGET _rp2040_family_inclusion_marker)
enable_language(C CXX ASM)
pico_sdk_init()
endfunction()
+
+ # This method must be called from the project scope to suppress known warnings in TinyUSB source files
+ function(suppress_tinyusb_warnings)
+ set_source_files_properties(
+ ${PICO_TINYUSB_PATH}/src/tusb.c
+ PROPERTIES
+ COMPILE_FLAGS "-Wno-conversion")
+ set_source_files_properties(
+ ${PICO_TINYUSB_PATH}/src/common/tusb_fifo.c
+ PROPERTIES
+ COMPILE_FLAGS "-Wno-conversion -Wno-cast-qual")
+ set_source_files_properties(
+ ${PICO_TINYUSB_PATH}/src/device/usbd.c
+ PROPERTIES
+ COMPILE_FLAGS "-Wno-conversion -Wno-cast-qual -Wno-null-dereference")
+ set_source_files_properties(
+ ${PICO_TINYUSB_PATH}/src/device/usbd_control.c
+ PROPERTIES
+ COMPILE_FLAGS "-Wno-conversion")
+ set_source_files_properties(
+ ${PICO_TINYUSB_PATH}/src/class/cdc/cdc_device.c
+ PROPERTIES
+ COMPILE_FLAGS "-Wno-conversion")
+ endfunction()
endif()