summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-04-11 13:37:07 +0700
committerhathach <[email protected]>2021-04-11 13:37:07 +0700
commitc8bb0020ea186dab093cd7adf4c694d89657e1cd (patch)
tree21400887c43e6590d229e4c386936fba048aa32f /examples
parentbebc910447bc4208977f2cc055db306713f48030 (diff)
update rp2040 to use pico-sdk externally
also try to update ci
Diffstat (limited to 'examples')
-rw-r--r--examples/device/audio_test/CMakeLists.txt4
-rw-r--r--examples/device/board_test/CMakeLists.txt4
-rw-r--r--examples/device/cdc_dual_ports/CMakeLists.txt4
-rw-r--r--examples/device/cdc_msc/CMakeLists.txt4
-rw-r--r--examples/device/dfu_runtime/CMakeLists.txt4
-rw-r--r--examples/device/dynamic_configuration/CMakeLists.txt4
-rw-r--r--examples/device/hid_composite/CMakeLists.txt4
-rw-r--r--examples/device/hid_generic_inout/CMakeLists.txt4
-rw-r--r--examples/device/hid_multiple_interface/CMakeLists.txt4
-rw-r--r--examples/device/midi_test/CMakeLists.txt4
-rw-r--r--examples/device/msc_dual_lun/CMakeLists.txt4
-rw-r--r--examples/device/net_lwip_webserver/CMakeLists.txt4
-rw-r--r--examples/device/uac2_headset/CMakeLists.txt4
-rw-r--r--examples/device/usbtmc/CMakeLists.txt5
-rw-r--r--examples/device/webusb_serial/CMakeLists.txt4
-rw-r--r--examples/host/cdc_msc_hid/CMakeLists.txt4
16 files changed, 18 insertions, 47 deletions
diff --git a/examples/device/audio_test/CMakeLists.txt b/examples/device/audio_test/CMakeLists.txt
index 03f2439e2..9cae652ea 100644
--- a/examples/device/audio_test/CMakeLists.txt
+++ b/examples/device/audio_test/CMakeLists.txt
@@ -10,9 +10,7 @@ get_filename_component(TOP "${TOP}" REALPATH)
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/board_test/CMakeLists.txt b/examples/device/board_test/CMakeLists.txt
index b4c4ce4d0..32c0329ea 100644
--- a/examples/device/board_test/CMakeLists.txt
+++ b/examples/device/board_test/CMakeLists.txt
@@ -16,9 +16,7 @@ if(FAMILY STREQUAL "esp32s2")
elseif(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/cdc_dual_ports/CMakeLists.txt b/examples/device/cdc_dual_ports/CMakeLists.txt
index 94e4fc1fa..bb6416cc7 100644
--- a/examples/device/cdc_dual_ports/CMakeLists.txt
+++ b/examples/device/cdc_dual_ports/CMakeLists.txt
@@ -10,9 +10,7 @@ get_filename_component(TOP "${TOP}" REALPATH)
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/cdc_msc/CMakeLists.txt b/examples/device/cdc_msc/CMakeLists.txt
index f6cf64521..d4ee8c050 100644
--- a/examples/device/cdc_msc/CMakeLists.txt
+++ b/examples/device/cdc_msc/CMakeLists.txt
@@ -14,8 +14,8 @@ if(FAMILY STREQUAL "esp32s2")
elseif(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
+
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/dfu_runtime/CMakeLists.txt b/examples/device/dfu_runtime/CMakeLists.txt
index ea294b3b9..d59d2e9a1 100644
--- a/examples/device/dfu_runtime/CMakeLists.txt
+++ b/examples/device/dfu_runtime/CMakeLists.txt
@@ -10,9 +10,7 @@ get_filename_component(TOP "${TOP}" REALPATH)
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/dynamic_configuration/CMakeLists.txt b/examples/device/dynamic_configuration/CMakeLists.txt
index 09a8dcc4c..a9c343994 100644
--- a/examples/device/dynamic_configuration/CMakeLists.txt
+++ b/examples/device/dynamic_configuration/CMakeLists.txt
@@ -10,9 +10,7 @@ get_filename_component(TOP "${TOP}" REALPATH)
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/hid_composite/CMakeLists.txt b/examples/device/hid_composite/CMakeLists.txt
index c85f2ace2..7f85a3a40 100644
--- a/examples/device/hid_composite/CMakeLists.txt
+++ b/examples/device/hid_composite/CMakeLists.txt
@@ -10,9 +10,7 @@ get_filename_component(TOP "${TOP}" REALPATH)
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/hid_generic_inout/CMakeLists.txt b/examples/device/hid_generic_inout/CMakeLists.txt
index 5de4a932d..d59d2e9a1 100644
--- a/examples/device/hid_generic_inout/CMakeLists.txt
+++ b/examples/device/hid_generic_inout/CMakeLists.txt
@@ -10,9 +10,7 @@ get_filename_component(TOP "${TOP}" REALPATH)
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/hid_multiple_interface/CMakeLists.txt b/examples/device/hid_multiple_interface/CMakeLists.txt
index 5de4a932d..d59d2e9a1 100644
--- a/examples/device/hid_multiple_interface/CMakeLists.txt
+++ b/examples/device/hid_multiple_interface/CMakeLists.txt
@@ -10,9 +10,7 @@ get_filename_component(TOP "${TOP}" REALPATH)
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/midi_test/CMakeLists.txt b/examples/device/midi_test/CMakeLists.txt
index 5de4a932d..d59d2e9a1 100644
--- a/examples/device/midi_test/CMakeLists.txt
+++ b/examples/device/midi_test/CMakeLists.txt
@@ -10,9 +10,7 @@ get_filename_component(TOP "${TOP}" REALPATH)
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/msc_dual_lun/CMakeLists.txt b/examples/device/msc_dual_lun/CMakeLists.txt
index 48e183edc..454c5a08a 100644
--- a/examples/device/msc_dual_lun/CMakeLists.txt
+++ b/examples/device/msc_dual_lun/CMakeLists.txt
@@ -10,9 +10,7 @@ get_filename_component(TOP "${TOP}" REALPATH)
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/net_lwip_webserver/CMakeLists.txt b/examples/device/net_lwip_webserver/CMakeLists.txt
index 69a242be8..76f7be6cc 100644
--- a/examples/device/net_lwip_webserver/CMakeLists.txt
+++ b/examples/device/net_lwip_webserver/CMakeLists.txt
@@ -10,9 +10,7 @@ get_filename_component(TOP "${TOP}" REALPATH)
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/uac2_headset/CMakeLists.txt b/examples/device/uac2_headset/CMakeLists.txt
index 5de4a932d..d59d2e9a1 100644
--- a/examples/device/uac2_headset/CMakeLists.txt
+++ b/examples/device/uac2_headset/CMakeLists.txt
@@ -10,9 +10,7 @@ get_filename_component(TOP "${TOP}" REALPATH)
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/usbtmc/CMakeLists.txt b/examples/device/usbtmc/CMakeLists.txt
index f40d123b0..f9ba2b529 100644
--- a/examples/device/usbtmc/CMakeLists.txt
+++ b/examples/device/usbtmc/CMakeLists.txt
@@ -9,9 +9,8 @@ get_filename_component(TOP "${TOP}" REALPATH)
# Check for -DFAMILY=
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/device/webusb_serial/CMakeLists.txt b/examples/device/webusb_serial/CMakeLists.txt
index 5de4a932d..d59d2e9a1 100644
--- a/examples/device/webusb_serial/CMakeLists.txt
+++ b/examples/device/webusb_serial/CMakeLists.txt
@@ -10,9 +10,7 @@ get_filename_component(TOP "${TOP}" REALPATH)
if(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})
diff --git a/examples/host/cdc_msc_hid/CMakeLists.txt b/examples/host/cdc_msc_hid/CMakeLists.txt
index 7413e4087..30b6c713e 100644
--- a/examples/host/cdc_msc_hid/CMakeLists.txt
+++ b/examples/host/cdc_msc_hid/CMakeLists.txt
@@ -15,9 +15,7 @@ if(FAMILY STREQUAL "esp32s2")
elseif(FAMILY STREQUAL "rp2040")
cmake_minimum_required(VERSION 3.12)
- set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
- include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
-
+ include(${TOP}/hw/bsp/${FAMILY}/pico_sdk_import.cmake)
project(${PROJECT})
add_executable(${PROJECT})