From c34f7bc72b55a6f9b6e089ccebac41687314b3aa Mon Sep 17 00:00:00 2001 From: Hector van der Aa Date: Sat, 21 Mar 2026 17:29:25 +0100 Subject: [PATCH] Added Zephyr Project --- Zephyr/.gitignore | 31 +++++++++++++++++++++++++++++++ Zephyr/CMakeLists.txt | 6 ++++++ Zephyr/prj.conf | 0 Zephyr/src/main.c | 7 +++++++ 4 files changed, 44 insertions(+) create mode 100644 Zephyr/.gitignore create mode 100644 Zephyr/CMakeLists.txt create mode 100644 Zephyr/prj.conf create mode 100644 Zephyr/src/main.c diff --git a/Zephyr/.gitignore b/Zephyr/.gitignore new file mode 100644 index 0000000..da35d5f --- /dev/null +++ b/Zephyr/.gitignore @@ -0,0 +1,31 @@ +# ======================== +# Build directory +# ======================== +build/ +**/build/ + +# ======================== +# CMake +# ======================== +CMakeCache.txt +CMakeFiles/ +cmake_install.cmake +compile_commands.json + +# ======================== +# Zephyr / west (optional) +# ======================== +.west/ + +# ======================== +# Editor / IDE +# ======================== +.vscode/ +.idea/ +*.swp + +# ======================== +# OS +# ======================== +.DS_Store +Thumbs.db diff --git a/Zephyr/CMakeLists.txt b/Zephyr/CMakeLists.txt new file mode 100644 index 0000000..aad127e --- /dev/null +++ b/Zephyr/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 3.20.0) + +find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(zephyr_freestanding_hello) + +target_sources(app PRIVATE src/main.c) diff --git a/Zephyr/prj.conf b/Zephyr/prj.conf new file mode 100644 index 0000000..e69de29 diff --git a/Zephyr/src/main.c b/Zephyr/src/main.c new file mode 100644 index 0000000..e657d28 --- /dev/null +++ b/Zephyr/src/main.c @@ -0,0 +1,7 @@ +#include +#include + +int main(void) { + printk("Hello from my freestanding Zephyr app!\n"); + return 0; +}