Added Zephyr Project
This commit is contained in:
31
Zephyr/.gitignore
vendored
Normal file
31
Zephyr/.gitignore
vendored
Normal 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
6
Zephyr/CMakeLists.txt
Normal 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
0
Zephyr/prj.conf
Normal file
7
Zephyr/src/main.c
Normal file
7
Zephyr/src/main.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user