summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-01-23 17:26:32 +0700
committerhathach <[email protected]>2025-01-23 17:35:05 +0700
commit0162d6ab326cb1903e62664b0e18913dbf8ed823 (patch)
tree85d12769160f0686590d24d7f86c4cd6798d7982
parent31071ccf0e27cc8b77ddb41417665ea82b2b9b35 (diff)
kind of work with zephyr with pca10056 with cmake -DBUILD_ZEPHYR
-rw-r--r--.west/config2
-rw-r--r--examples/device/cdc_msc/prj.conf6
-rw-r--r--examples/west.yml12
-rw-r--r--hw/bsp/nrf/boards/pca10056/board_aliases.cmake1
4 files changed, 20 insertions, 1 deletions
diff --git a/.west/config b/.west/config
index f6f0d7a3d..2518007f6 100644
--- a/.west/config
+++ b/.west/config
@@ -1,5 +1,5 @@
[manifest]
-path = lib/zephyr
+path = examples
file = west.yml
[zephyr]
diff --git a/examples/device/cdc_msc/prj.conf b/examples/device/cdc_msc/prj.conf
new file mode 100644
index 000000000..2f5139d9d
--- /dev/null
+++ b/examples/device/cdc_msc/prj.conf
@@ -0,0 +1,6 @@
+CONFIG_GPIO=y
+CONFIG_FPU=y
+CONFIG_NO_OPTIMIZATIONS=y
+CONFIG_UART_INTERRUPT_DRIVEN=y
+CONFIG_NRFX_POWER=y
+CONFIG_NRFX_UARTE0=y
diff --git a/examples/west.yml b/examples/west.yml
new file mode 100644
index 000000000..383815c45
--- /dev/null
+++ b/examples/west.yml
@@ -0,0 +1,12 @@
+manifest:
+ remotes:
+ - name: zephyrproject-rtos
+ url-base: https://github.com/zephyrproject-rtos
+ projects:
+ - name: zephyr
+ remote: zephyrproject-rtos
+ revision: main
+ path: lib/zephyr
+ import: true
+ self:
+ path: .
diff --git a/hw/bsp/nrf/boards/pca10056/board_aliases.cmake b/hw/bsp/nrf/boards/pca10056/board_aliases.cmake
new file mode 100644
index 000000000..91ffc3a39
--- /dev/null
+++ b/hw/bsp/nrf/boards/pca10056/board_aliases.cmake
@@ -0,0 +1 @@
+set(pca10056_BOARD_ALIAS nrf52840dk/nrf52840)