File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,15 @@ function(add_subdirectory_exclude_platforms NAME)
4343endfunction ()
4444
4545# Add blink example
46- add_subdirectory_exclude_platforms(blink)
46+ if (PICO_CYW43_SUPPORTED) # set by PICO_BOARD=pico_w
47+ if (NOT TARGET pico_cyw43_arch)
48+ message ("Skipping blink for Pico W as support is not available" )
49+ else ()
50+ add_subdirectory_exclude_platforms(blink)
51+ endif ()
52+ else ()
53+ add_subdirectory_exclude_platforms(blink)
54+ endif ()
4755add_subdirectory_exclude_platforms(blink_simple)
4856
4957# Add hello world example
Original file line number Diff line number Diff line change @@ -5,7 +5,15 @@ if (TARGET hardware_adc)
55 add_subdirectory_exclude_platforms(joystick_display)
66 add_subdirectory_exclude_platforms(onboard_temperature)
77 add_subdirectory_exclude_platforms(microphone_adc)
8- add_subdirectory_exclude_platforms(read_vsys)
8+ if (PICO_CYW43_SUPPORTED) # set by PICO_BOARD=pico_w
9+ if (NOT TARGET pico_cyw43_arch)
10+ message ("Skipping read_vsys for Pico W as support is not available" )
11+ else ()
12+ add_subdirectory_exclude_platforms(read_vsys)
13+ endif ()
14+ else ()
15+ add_subdirectory_exclude_platforms(read_vsys)
16+ endif ()
917else ()
1018 message ("Skipping ADC examples as hardware_adc is unavailable on this platform" )
11- endif ()
19+ endif ()
You can’t perform that action at this time.
0 commit comments