my first commit

This commit is contained in:
2023-12-08 21:13:49 -06:00
parent eca13acf57
commit 1f492d0835
3 changed files with 48 additions and 19 deletions

View File

@@ -1,10 +1,11 @@
if (TARGET tinyusb_device)
add_executable(hello_usb
hello_usb.c
hello_usb.cpp
)
set(PICO_CXX_ENABLE_EXCEPTIONS 1)
# pull in common dependencies
target_link_libraries(hello_usb pico_stdlib)
target_link_libraries(hello_usb pico_stdlib pico_multicore pico_util)
target_compile_definitions(hello_usb PRIVATE PARAM_ASSERTIONS_ENABLE_ALL=1)
# enable usb output, disable uart output
pico_enable_stdio_usb(hello_usb 1)