summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-03-29 14:23:11 +0700
committerhathach <[email protected]>2023-03-29 14:36:43 +0700
commit99315bcca35e1ffb9d14705a0cd533f962bc79eb (patch)
tree0d925eba556542f722c6519202bb6a98f30d6cd9
parent5add4c97fa834004e6a3b267345a13c6d3c9514a (diff)
adding more cmake support
-rw-r--r--.gitignore2
-rw-r--r--examples/CMakeLists.txt9
-rw-r--r--hw/bsp/rp2040/rp2040-openocd.cfg3
3 files changed, 14 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index bd4271925..268decfc6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,6 +28,8 @@ cov-int
*-build-dir
/_bin/
__pycache__
+cmake-build-*
+sdkconfig
# submodules
hw/mcu/allwinner
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 000000000..8f5626fa9
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,9 @@
+cmake_minimum_required(VERSION 3.5)
+
+include(${CMAKE_CURRENT_SOURCE_DIR}/../hw/bsp/family_support.cmake)
+
+project(tinyusb_examples)
+
+add_subdirectory(device)
+add_subdirectory(dual)
+add_subdirectory(host)
diff --git a/hw/bsp/rp2040/rp2040-openocd.cfg b/hw/bsp/rp2040/rp2040-openocd.cfg
new file mode 100644
index 000000000..3364c595e
--- /dev/null
+++ b/hw/bsp/rp2040/rp2040-openocd.cfg
@@ -0,0 +1,3 @@
+source [find interface/cmsis-dap.cfg]
+adapter speed 5000
+source [find target/rp2040.cfg]