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)
43
43
endfunction ()
44
44
45
45
# 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 ()
47
55
add_subdirectory_exclude_platforms (blink_simple )
48
56
49
57
# Add hello world example
Original file line number Diff line number Diff line change @@ -5,7 +5,15 @@ if (TARGET hardware_adc)
5
5
add_subdirectory_exclude_platforms (joystick_display )
6
6
add_subdirectory_exclude_platforms (onboard_temperature )
7
7
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 ()
9
17
else ()
10
18
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