diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-11-20 16:35:30 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-11-20 16:35:44 +0100 |
| commit | 570c88be0e06de5a36c8af0de7b112e9509325df (patch) | |
| tree | 4c5d4a9f36db5cf6e920d06104f4be66fa2a1766 /CMakeLists.txt | |
| parent | 5c2cb697aa8d03eed27b45f8dc67957c45a3d722 (diff) | |
| download | sxkbd-570c88be0e06de5a36c8af0de7b112e9509325df.tar.gz sxkbd-570c88be0e06de5a36c8af0de7b112e9509325df.zip | |
Add CDC stdio driver and logging + panic handlers
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a6c910f..b6cf2c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ add_executable(${PROJECT}) target_sources(${PROJECT} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/main.c + ${CMAKE_CURRENT_SOURCE_DIR}/src/util.c ${CMAKE_CURRENT_SOURCE_DIR}/src/neopix.c ${CMAKE_CURRENT_SOURCE_DIR}/src/usb_descriptors.c ) @@ -24,10 +25,16 @@ target_include_directories(${PROJECT} PUBLIC target_link_libraries(${PROJECT} PRIVATE pico_stdlib + pico_stdio hardware_pio hardware_gpio + tinyusb_device ) -# Configure compilation flags and libraries for the example... see the corresponding function -# in hw/bsp/FAMILY/family.cmake for details. -family_configure_device_example(${PROJECT}) +target_compile_options(pico_stdio INTERFACE + -Wno-shadow # issue in picosdk/src/rp2_common/hardware_flash/flash.c +) + +family_configure_target(${PROJECT}) +family_add_default_example_warnings(${PROJECT}) +suppress_tinyusb_warnings() |
