diff --git a/samples/README.md b/.github/samples/README.md similarity index 100% rename from samples/README.md rename to .github/samples/README.md diff --git a/samples/kernal_sample/.gitignore b/.github/samples/kernal_sample/.gitignore similarity index 100% rename from samples/kernal_sample/.gitignore rename to .github/samples/kernal_sample/.gitignore diff --git a/samples/kernal_sample/CMakeLists.txt b/.github/samples/kernal_sample/CMakeLists.txt similarity index 97% rename from samples/kernal_sample/CMakeLists.txt rename to .github/samples/kernal_sample/CMakeLists.txt index 7576248..3c25dd0 100644 --- a/samples/kernal_sample/CMakeLists.txt +++ b/.github/samples/kernal_sample/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.20) project(kernal_sample LANGUAGES C) -set(At_RTOS_PATH "../../") +set(At_RTOS_PATH "../../../") include(${At_RTOS_PATH}/CMakeLists.txt) diff --git a/samples/kernal_sample/main.c b/.github/samples/kernal_sample/main.c similarity index 100% rename from samples/kernal_sample/main.c rename to .github/samples/kernal_sample/main.c diff --git a/script/auto-version.cmd b/.github/script/auto-version.cmd similarity index 100% rename from script/auto-version.cmd rename to .github/script/auto-version.cmd diff --git a/script/auto-version.ps1 b/.github/script/auto-version.ps1 similarity index 99% rename from script/auto-version.ps1 rename to .github/script/auto-version.ps1 index d8e1ac3..f498d52 100644 --- a/script/auto-version.ps1 +++ b/.github/script/auto-version.ps1 @@ -1,5 +1,5 @@ $VersionFile = "atos_version.h" -$VersionPath = "../kernal/include" +$VersionPath = "../../kernal/include" $FileContent = '/** * Copyright (c) Riven Zheng (zhengheiot@gmail.com). * diff --git a/.github/workflows/kernal-sample.yml b/.github/workflows/kernal-sample.yml index 12e61b3..5de5980 100644 --- a/.github/workflows/kernal-sample.yml +++ b/.github/workflows/kernal-sample.yml @@ -20,7 +20,7 @@ jobs: - name: Build Kernal Sample CMake shell: bash - working-directory: samples/kernal_sample + working-directory: .github/samples/kernal_sample run: | cmake -S . -B build cmake --build build diff --git a/.github/workflows/trigger-version-release.yml b/.github/workflows/trigger-version-release.yml index 9a77fc7..113adef 100644 --- a/.github/workflows/trigger-version-release.yml +++ b/.github/workflows/trigger-version-release.yml @@ -18,7 +18,7 @@ jobs: - name: Execute Version Script id: version shell: powershell - working-directory: script + working-directory: .github/script run: | $message = powershell.exe -ExecutionPolicy bypass .\auto-version.ps1 echo "value=$message" >> "$env:GITHUB_OUTPUT" diff --git a/README.md b/README.md index 81b52e3..fd916a5 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,71 @@ If this project was useful to you, give it a ⭐️ and I'll keep improving it. * **Tiny footprint:** It's as low as 1KB ROM/few bytes of RAM. * **Learn Once, Write Anywhere:** We don't make assumptions about the rest of your technology stack, so you can develop new features in At-RTOS without rewriting existing code. +## Kernal Structure + +```shell +# At-RTOS source code tree +At-RTOS +├── arch +│ ├── arch32 +│ │ └── arm +│ │ └── cmsis +│ │ └── include +│ ├── arch.h +│ └── CMakeLists.txt +├── clock +│ ├── include +│ │ └── clock_tick.h +│ ├── clock_systick.c +│ └── CMakeLists.txt +├── port +│ ├── include +│ │ └── port.h +│ ├── port_keil.c +│ └── CMakeLists.txt +├── include +│ ├── atos_configuration.h +│ └── CMakeLists.txt +├── kernal +│ ├── include +│ │ ├── at_rtos.h +│ │ ├── atos_version.h +│ │ ├── basic.h +│ │ ├── compiler.h +│ │ ├── configuration.h +│ │ ├── event.h +│ │ ├── idle.h +│ │ ├── kernal.h +│ │ ├── kernal_thread.h +│ │ ├── linker.h +│ │ ├── list.h +│ │ ├── member_struct.h +│ │ ├── mutex.h +│ │ ├── postcode.h +│ │ ├── queue.h +│ │ ├── semaphore.h +│ │ ├── thread.h +│ │ ├── timer.h +│ │ ├── trace.h +│ │ ├── type.h +│ │ └── unique.h +│ ├── basic.c +│ ├── event.c +│ ├── kernal.c +│ ├── kernal_thread.c +│ ├── linker.c +│ ├── list.c +│ ├── mutex.c +│ ├── queue.c +│ ├── semaphore.c +│ ├── thread.c +│ ├── timer.c +│ ├── trace.c +│ └── CMakeLists.txt +├── kernal_idle.c +└── CMakeLists.txt +``` + ## What's New [v1.0.0] Welcome to At-RTOS. v1.0.0 was released now. A basic RTOS feature was implemented in the kernal system, Pls enjoy it (: