Added Zephyr Project

This commit is contained in:
2026-03-21 17:29:25 +01:00
parent 9feea0f9fe
commit c34f7bc72b
4 changed files with 44 additions and 0 deletions

31
Zephyr/.gitignore vendored Normal file
View File

@@ -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

6
Zephyr/CMakeLists.txt Normal file
View File

@@ -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)

0
Zephyr/prj.conf Normal file
View File

7
Zephyr/src/main.c Normal file
View File

@@ -0,0 +1,7 @@
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
int main(void) {
printk("Hello from my freestanding Zephyr app!\n");
return 0;
}