summaryrefslogtreecommitdiff
path: root/examples/device/dfu_runtime
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-03-18 19:53:39 +0700
committerhathach <[email protected]>2021-03-18 19:53:39 +0700
commit249852d25ced9852eb7f95dcc38b2a82b4c02390 (patch)
treeebd05fce430ebc7a8f1b8a1b76ae4a71191d6e63 /examples/device/dfu_runtime
parente182bb2a5b27eca914a72e8c074dabd333603d34 (diff)
use boot2_generic_03h for adafruit feather rp2040
- also use boot2_generic_03h for now for itsy bitsy and qt rp2040 - change default flash target for rp2040 to flash-pyocd
Diffstat (limited to 'examples/device/dfu_runtime')
-rw-r--r--examples/device/dfu_runtime/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/device/dfu_runtime/CMakeLists.txt b/examples/device/dfu_runtime/CMakeLists.txt
index 5e3ec0909..ea294b3b9 100644
--- a/examples/device/dfu_runtime/CMakeLists.txt
+++ b/examples/device/dfu_runtime/CMakeLists.txt
@@ -9,10 +9,11 @@ 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)
+
project(${PROJECT})
- pico_sdk_init()
add_executable(${PROJECT})
include(${TOP}/hw/bsp/${FAMILY}/family.cmake)