Skip to content

Commit

Permalink
Add fixes for Pico-SDK v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
krzmaz committed Jun 2, 2023
1 parent 2fcb9a0 commit 0864100
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cmake/utils.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# see https://github.com/raspberrypi/pico-sdk/issues/780
function(suppress_tinyusb_warnings)
# see https://github.com/raspberrypi/pico-sdk/issues/1282
function(suppress_pico_sdk_warnings)
set_source_files_properties(
${PICO_TINYUSB_PATH}/src/portable/raspberrypi/rp2040/rp2040_usb.c
${PICO_SDK_PATH}/src/rp2_common/pico_async_context/async_context_threadsafe_background.c
PROPERTIES
COMPILE_FLAGS "-Wno-stringop-overflow -Wno-array-bounds")
COMPILE_FLAGS "-Wno-unused-function")
endfunction()

function(get_pico_sdk_import_cmake)
Expand Down
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ target_include_directories(${PROGRAM_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}
)
target_link_libraries(${PROGRAM_NAME}
cyw43_driver_base
pico_cyw43_arch_lwip_threadsafe_background
pico_lwip_http
pico_stdlib
Expand All @@ -39,6 +38,6 @@ target_link_libraries(${PROGRAM_NAME}

pico_enable_stdio_usb(${PROGRAM_NAME} TRUE)
pico_enable_stdio_uart(${PROGRAM_NAME} TRUE)
suppress_tinyusb_warnings()
suppress_pico_sdk_warnings()

pico_add_extra_outputs(${PROGRAM_NAME})

0 comments on commit 0864100

Please sign in to comment.