Bug fixes and new examples Co-authored-by: Paulo Marques <pm@quant-insight.com> Co-authored-by: martin <admin@crossleys.biz> Co-authored-by: matiasilva <matias.silva@raspberrypi.com> Co-authored-by: Uri Shaked <uri@urishaked.com> Co-authored-by: Diego Solano <diegosolano@gmail.com> Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com> Co-authored-by: Adrian Hesketh <a-h@users.noreply.github.com> Co-authored-by: Emircan Gündoğdu <58917386+emircangun@users.noreply.github.com> Co-authored-by: Josef Wegner <80200012+josefwegner@users.noreply.github.com> Co-authored-by: pmarques-dev <72901351+pmarques-dev@users.noreply.github.com> Co-authored-by: Paulo Marques <pm@quant-insight.com> Co-authored-by: mjcross <mjcross@users.noreply.github.com> Co-authored-by: martin <admin@crossleys.biz>
21 lines
590 B
CMake
21 lines
590 B
CMake
if (TARGET tinyusb_device)
|
|
add_executable(hello_usb
|
|
hello_usb.c
|
|
)
|
|
|
|
# pull in common dependencies
|
|
target_link_libraries(hello_usb pico_stdlib)
|
|
|
|
# enable usb output, disable uart output
|
|
pico_enable_stdio_usb(hello_usb 1)
|
|
pico_enable_stdio_uart(hello_usb 0)
|
|
|
|
# create map/bin/hex/uf2 file etc.
|
|
pico_add_extra_outputs(hello_usb)
|
|
|
|
# add url via pico_set_program_url
|
|
example_auto_set_url(hello_usb)
|
|
elseif(PICO_ON_DEVICE)
|
|
message(WARNING "not building hello_usb because TinyUSB submodule is not initialized in the SDK")
|
|
endif()
|