hello_world: fix build guards to allow host build, and improve missing tinyusb message
This commit is contained in:
parent
396ca36dc1
commit
9c7e31b8e7
@ -1,4 +1,2 @@
|
||||
if (NOT PICO_NO_HARDWARE)
|
||||
add_subdirectory(usb)
|
||||
add_subdirectory(serial)
|
||||
endif ()
|
||||
add_subdirectory(usb)
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
if (TARGET tinyusb_device)
|
||||
add_executable(hello_usb
|
||||
hello_usb.c
|
||||
)
|
||||
@ -14,3 +15,6 @@ 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()
|
||||
|
||||
Reference in New Issue
Block a user