Skip to content

Commit 52816ab

Browse files
authored
Merge pull request #8 from fprime-community/v4.0.0
Add RPI pico to supported boards
2 parents bba9a54 + 8215896 commit 52816ab

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
####
55

66
cmake_minimum_required(VERSION 3.24.2)
7-
7+
# Patch in std-atomic implementations
8+
if (BOARD STREQUAL "rpi_pico" OR FPRIME_ZEPHYR_USE_STD_ATOMIC_FIX)
9+
include_directories(BEFORE "${CMAKE_CURRENT_LIST_DIR}/lib/fprime-zephyr/fprime-zephyr/Os/StdAtomic")
10+
endif()
811
find_package(Zephyr HINTS "${CMAKE_CURRENT_LIST_DIR}/lib/zephyr-workspace")
912
project(fprime-zephyr-reference C CXX)
1013

boards/rpi_pico.overlay

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
&zephyr_udc0 {
2+
cdc_acm_uart0: cdc_acm_uart0 {
3+
compatible = "zephyr,cdc-acm-uart";
4+
};
5+
};
6+
7+
/ {
8+
chosen {
9+
zephyr,console = &cdc_acm_uart0;
10+
};
11+
};

fprime-gds.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
command-line-options:
2+
communication-selection: uart
3+
uart-baud: 115200
4+
no-app:
5+

prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
CONFIG_USB_DEVICE_PID=0x000F
99
CONFIG_USB_DEVICE_VID=0x2E8A
1010

11+
#### From Raspberry Pi Pico USB Definitions ####
12+
# CONFIG_USB_DEVICE_PID=0x0003
13+
# CONFIG_USB_DEVICE_VID=0x2E8A
14+
1115
#### F Prime C++ Dependencies ####
1216
CONFIG_CPP=y
1317
CONFIG_REQUIRES_FULL_LIBCPP=y

0 commit comments

Comments
 (0)