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; +}