1 Star 0 Fork 0

长白山礁/page-v1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 19.87 KB
一键复制 编辑 原始数据 按行查看 历史
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="None">
<meta name="author" content="隐星魂 (Roy.Sun)">
<link rel="shortcut icon" href="img/favicon.ico">
<title>玄武操作系统</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.staticfile.org/highlight.js/10.0.3/styles/color-brewer.min.css">
<script src="js/jquery-1.10.2.min.js" defer></script>
<script src="js/bootstrap.min.js" defer></script>
<script src="https://cdn.staticfile.org/highlight.js/10.0.3/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body class="homepage">
<div class="navbar fixed-top navbar-expand-lg navbar-dark bg-primary">
<div class="container">
<a class="navbar-brand" href=".">玄武操作系统</a>
<!-- Expander button -->
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar-collapse">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Expanded navigation -->
<div id="navbar-collapse" class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="nav navbar-nav">
<li class="navitem active">
<a href="." class="nav-link">介绍</a>
</li>
<li class="navitem">
<a href="license/" class="nav-link">开源协议</a>
</li>
<li class="dropdown">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">应用手册 <b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/01.%E7%AE%80%E4%BB%8B/" class="dropdown-item">简介</a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/02.%E7%B3%BB%E7%BB%9F%E5%9F%BA%E6%9C%AC%E6%9E%B6%E6%9E%84/" class="dropdown-item">系统基本架构</a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/03.%E6%9E%84%E5%BB%BA%E7%B3%BB%E7%BB%9F/" class="dropdown-item">构建系统</a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/04.%E5%90%AF%E5%8A%A8%E6%B5%81%E7%A8%8B/" class="dropdown-item">启动流程</a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/05.%E5%9F%BA%E6%9C%AC%E7%BA%A6%E5%AE%9A/" class="dropdown-item">基本约定</a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/06.%E4%B8%AD%E6%96%AD%E6%8E%A7%E5%88%B6/" class="dropdown-item">中断控制</a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/07.%E8%B0%83%E5%BA%A6%E5%99%A8/" class="dropdown-item">调度器</a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/08.%E7%BA%BF%E7%A8%8B/" class="dropdown-item">线程</a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/09.%E7%94%B5%E6%BA%90%E7%AE%A1%E7%90%86/" class="dropdown-item">电源管理</a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/10.%E8%BD%AF%E4%BB%B6%E5%AE%9A%E6%97%B6%E5%99%A8/" class="dropdown-item">软件定时器</a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/11.%E9%94%81/" class="dropdown-item"></a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/12.%E5%90%8C%E6%AD%A5/" class="dropdown-item">同步</a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/13.%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86/" class="dropdown-item">内存管理</a>
</li>
<li>
<a href="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/14.%E7%8E%84%E6%AD%A6C%E5%BA%93/" class="dropdown-item">玄武C库</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">快速开发指南 <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="dropdown-submenu">
<a href="#" class="dropdown-item">S32k</a>
<ul class="dropdown-menu">
<li>
<a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/s32k/1.XuanWuOS-envsetup-guide/" class="dropdown-item">开发环境搭建指南</a>
</li>
<li>
<a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/s32k/2.XuanWuOS-project-setup-guide/" class="dropdown-item">工程配置指南</a>
</li>
</ul>
</li>
<li class="dropdown-submenu">
<a href="#" class="dropdown-item">Stm32</a>
<ul class="dropdown-menu">
<li>
<a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/stm32/1.XuanWuOS-envsetup-guide/" class="dropdown-item">开发环境搭建指南</a>
</li>
<li>
<a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/stm32/2.XuanWuOS-project-setup-guide/" class="dropdown-item">工程配置指南</a>
</li>
<li>
<a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/stm32/3.XuanWuOS-xwbd-atkh743/" class="dropdown-item">正点原子阿波罗H743开发板上手指南</a>
</li>
<li>
<a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/stm32/4.XuanWuOS-xwbd-fk429m/" class="dropdown-item">反客F429核心板上手指南</a>
</li>
<li>
<a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/stm32/5.XuanWuOS-xwbd-atkf407core/" class="dropdown-item">正点原子F407核心板上手指南</a>
</li>
<li>
<a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/stm32/6.XuanWuOS-xwbd-atkf103core/" class="dropdown-item">正点原子F103核心板上手指南</a>
</li>
</ul>
</li>
<li class="dropdown-submenu">
<a href="#" class="dropdown-item">Xwko</a>
<ul class="dropdown-menu">
<li>
<a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/xwko/1.XuanWuKO-guide/" class="dropdown-item">玄武内核模块快速上手指南</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">规范 <b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a href="%E8%A7%84%E8%8C%83/git-commit-specification/" class="dropdown-item">git commit规范</a>
</li>
<li>
<a href="%E8%A7%84%E8%8C%83/version-branch-specification/" class="dropdown-item">分支与版本号</a>
</li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav ml-auto">
<li class="nav-item">
<a href="#" class="nav-link" data-toggle="modal" data-target="#mkdocs_search_modal">
<i class="fa fa-search"></i> 搜索
</a>
</li>
<li class="nav-item">
<a rel="prev" class="nav-link disabled">
<i class="fa fa-arrow-left"></i> 上一篇
</a>
</li>
<li class="nav-item">
<a rel="next" href="license/" class="nav-link">
下一篇 <i class="fa fa-arrow-right"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-3"><div class="navbar-light navbar-expand-md bs-sidebar hidden-print affix" role="complementary">
<div class="navbar-header">
<button type="button" class="navbar-toggler collapsed" data-toggle="collapse" data-target="#toc-collapse" title="Table of Contents">
<span class="fa fa-angle-down"></span>
</button>
</div>
<div id="toc-collapse" class="navbar-collapse collapse card bg-secondary">
<ul class="nav flex-column">
<li class="nav-item" data-level="1"><a href="#_1" class="nav-link">介绍</a>
<ul class="nav flex-column">
</ul>
</li>
<li class="nav-item" data-level="1"><a href="#lua" class="nav-link">Lua虚拟机</a>
<ul class="nav flex-column">
</ul>
</li>
<li class="nav-item" data-level="1"><a href="#_2" class="nav-link">玄武内核模块</a>
<ul class="nav flex-column">
</ul>
</li>
<li class="nav-item" data-level="1"><a href="#c" class="nav-link">C++</a>
<ul class="nav flex-column">
</ul>
</li>
<li class="nav-item" data-level="1"><a href="#_3" class="nav-link">编译过程</a>
<ul class="nav flex-column">
</ul>
</li>
<li class="nav-item" data-level="1"><a href="#_4" class="nav-link">源码结构</a>
<ul class="nav flex-column">
</ul>
</li>
<li class="nav-item" data-level="1"><a href="#_5" class="nav-link">上手指南</a>
<ul class="nav flex-column">
</ul>
</li>
<li class="nav-item" data-level="1"><a href="#_6" class="nav-link">示例</a>
<ul class="nav flex-column">
</ul>
</li>
<li class="nav-item" data-level="1"><a href="#_7" class="nav-link">应用手册</a>
<ul class="nav flex-column">
</ul>
</li>
</ul>
</div>
</div></div>
<div class="col-md-9" role="main">
<h1 id="_1">介绍</h1>
<p>玄武操作系统是一款运行在单片机上的通用操作系统,可用于汽车、物联网、工控等各个领域。
玄武OS的内核是假定系统为多核系统(SMP)来设计的,但也提供单核(UP)精简版的内核。</p>
<ul>
<li>源码仓库:<a href="https://gitee.com/starsoul/XuanWuOS.git">XuanWuOS</a></li>
<li>欢迎加入QQ讨论群:820392693</li>
</ul>
<p>玄武OS不只是一个操作系统内核,其实是关于系统内核、中间件、应用的一整套集成开发环境。
包括以下特性:</p>
<ul>
<li>开发环境支持多平台:Linux/Windows;</li>
<li>便于扩展的编译系统,可快速集成各种组件;</li>
<li>提供单核CPU与多核CPU两种内核;</li>
<li>高度模块化;</li>
<li>高可移植性,支持各种架构的MCU;</li>
<li>支持C/C++混合开发;</li>
<li>集成Lua虚拟机;</li>
<li>自身的命名前缀与命名空间,防止集成第三方组件时发生命名冲突;</li>
<li>电源管理框架。</li>
</ul>
<p>用户可先参考<a href="#上手指南">上手指南</a>选择一个开发环境,然后参考<a href="#示例">示例</a>学习
玄武OS的各种用法。</p>
<hr />
<h1 id="lua">Lua虚拟机</h1>
<ul>
<li>玄武OS已经集成最新的Lua-5.4.0</li>
<li>示例1<ul>
<li>工程: XuanWuOS/xwbd/fk429m</li>
<li>MCU:STM32F429</li>
</ul>
</li>
<li>示例2<ul>
<li>工程: XuanWuOS/xwbd/atkh743</li>
<li>MCU:STM32H743</li>
</ul>
</li>
</ul>
<p><img alt="img" src="res/figure/xwlua.png" title="Lua虚拟机@玄武OS" /></p>
<hr />
<h1 id="_2">玄武内核模块</h1>
<p>玄武OS还有一个在Linux内核中实现的内核模块,安装到Linux内核后就可在内核中
调用玄武OS的API。</p>
<ul>
<li>源码仓库:<a href="https://gitee.com/starsoul/XuanWuKO.git">XuanWuKO</a></li>
<li>支持Linux内核的版本:3.0.x ~ 5.4.x 。</li>
</ul>
<p><img alt="img" src="res/figure/xwko.png" title="玄武内核模块" /></p>
<hr />
<h1 id="c">C++</h1>
<ul>
<li>玄武OS支持使用C++进行开发</li>
</ul>
<p><img alt="img" src="res/figure/cxx.png" title="C++开发" /></p>
<hr />
<h1 id="_3">编译过程</h1>
<p>玄武OS在终端环境,也拥有一个颜色鲜艳的编译过程。</p>
<p><img alt="img" src="res/figure/xwos-build.png" title="玄武OS编译过程" /></p>
<hr />
<h1 id="_4">源码结构</h1>
<p><img alt="img" src="%E5%BA%94%E7%94%A8%E6%89%8B%E5%86%8C/res/figure/xwos-arch.png" title="玄武OS架构图" /></p>
<ul>
<li>Build<ul>
<li>xwbs: 编译系统 (License:Apache-2.0)</li>
</ul>
</li>
<li>BSP &amp; Project<ul>
<li>xwcd: 架构、CPU、SOC、外设驱动相关的代码 (License:Apache-2.0)</li>
<li>xwbd: 工程配置、工程驱动与工程应用程序 (License:Apache-2.0)</li>
</ul>
</li>
<li>OS<ul>
<li>xwos: 内核 (License:MPL-2.0)</li>
</ul>
</li>
<li>Middleware<ul>
<li>xwmd: 驱动框架与中间件 (License:MPL-2.0)</li>
<li>xwem: 第三方开源软件</li>
</ul>
</li>
</ul>
<hr />
<p><a id="上手指南"></a></p>
<h1 id="_5">上手指南</h1>
<h4 id="linux">Linux内核模块</h4>
<ul>
<li><a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/xwko/1.XuanWuKO-guide/">玄武内核模块快速上手指南</a></li>
</ul>
<h4 id="st-stm32">ST STM32</h4>
<ul>
<li><a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/stm32/1.XuanWuOS-envsetup-guide/">Ubuntu &amp; Windows 开发环境搭建指南</a></li>
<li><a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/stm32/2.XuanWuOS-project-setup-guide/">工程配置指南</a></li>
<li><a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/stm32/3.XuanWuOS-xwbd-atkh743/">正点原子阿波罗H743开发板</a></li>
<li><a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/stm32/4.XuanWuOS-xwbd-fk429m/">反客F429核心板</a></li>
<li><a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/stm32/5.XuanWuOS-xwbd-atkf407core/">正点原子F407核心板</a></li>
<li><a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/stm32/6.XuanWuOS-xwbd-atkf103core/">正点原子F103核心板</a></li>
<li>野火H743 Pro开发板...编辑中...</li>
<li>官方NUCLEO-H745双核开发板...编辑中...</li>
</ul>
<h4 id="nxp-s32k">NXP S32K</h4>
<ul>
<li><a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/s32k/1.XuanWuOS-envsetup-guide/">Windows开发环境搭建指南</a></li>
<li><a href="%E5%BF%AB%E9%80%9F%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/s32k/2.XuanWuOS-project-setup-guide/">工程配置指南</a></li>
</ul>
<h4 id="nxp-mpc56x">NXP MPC56x</h4>
<p>编辑中...</p>
<h4 id="nxp-imx-rt1052">NXP I.MX RT1052</h4>
<ul>
<li>龙邱RT1052开发板...编辑中...</li>
</ul>
<p><a id="示例"></a></p>
<h1 id="_6">示例</h1>
<p>玄武OS中有多个示例可帮助用户快速了解API的用法。可调用<strong>xxx_start()</strong>函数启动示例。</p>
<ul>
<li>线程<ul>
<li>创建线程:xwam/example/thread/create</li>
<li>线程睡眠:xwam/example/thread/sleep</li>
</ul>
</li>
<li>定时器:xwam/example/timer</li>
<li>同步<ul>
<li>信号量:xwam/example/sync/semaphore</li>
<li>条件量:xwam/example/sync/condition</li>
<li>事件信号旗:xwam/example/sync/flag</li>
<li>线程栅栏:xwam/example/sync/barrier</li>
<li>信号选择器:xwam/example/sync/selector</li>
</ul>
</li>
<li>临界区管理<ul>
<li>中断管理:xwam/example/lock/cpuirq</li>
<li>自旋锁:xwam/example/lock/spinlock</li>
<li>顺序锁:xwam/example/lock/seqlock</li>
<li>互斥锁:xwam/example/lock/mutex</li>
</ul>
</li>
<li>内存管理<ul>
<li>简单内存分配器:xwam/example/mm/sma</li>
<li>内存切片分配器:xwam/example/mm/memslice</li>
<li>伙伴算法分配器:xwam/example/mm/bma</li>
</ul>
</li>
</ul>
<p><a id="应用手册"></a></p>
<h1 id="_7">应用手册</h1>
<p>可以在导航栏中找到应用手册的入口。</p>
<p><img alt="img" src="res/figure/manual.png" title="应用手册位置" /></p>
<hr /></div>
</div>
</div>
<footer class="col-md-12">
<hr>
<p>Documentation built with <a href="https://www.mkdocs.org/">MkDocs</a>.</p>
</footer>
<script>
var base_url = ".",
shortcuts = {"help": 191, "next": 78, "previous": 80, "search": 83};
</script>
<script src="js/base.js" defer></script>
<script src="search/main.js" defer></script>
<div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="searchModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="searchModalLabel">搜索</h4>
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
</div>
<div class="modal-body">
<p>
在这里所有文档:
</p>
<form>
<div class="form-group">
<input type="search" class="form-control" placeholder="搜索..." id="mkdocs-search-query" title="Type search term here">
</div>
</form>
<div id="mkdocs-search-results"></div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div><div class="modal" id="mkdocs_keyboard_modal" tabindex="-1" role="dialog" aria-labelledby="keyboardModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="keyboardModalLabel">Keyboard Shortcuts</h4>
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
</div>
<div class="modal-body">
<table class="table">
<thead>
<tr>
<th style="width: 20%;">Keys</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr>
<td class="help shortcut"><kbd>?</kbd></td>
<td>Open this help</td>
</tr>
<tr>
<td class="next shortcut"><kbd>n</kbd></td>
<td>Next page</td>
</tr>
<tr>
<td class="prev shortcut"><kbd>p</kbd></td>
<td>Previous page</td>
</tr>
<tr>
<td class="search shortcut"><kbd>s</kbd></td>
<td>Search</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</body>
</html>
<!--
MkDocs version : 1.1.2
Build Date UTC : 2020-11-17 08:16:49.900566+00:00
-->
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/laohai20080101/page-v1.git
[email protected]:laohai20080101/page-v1.git
laohai20080101
page-v1
page-v1
master

搜索帮助